macos: exclude popups from window list
authorChristian Hergert <christian@hergert.me>
Sat, 12 Mar 2022 06:36:26 +0000 (22:36 -0800)
committerChristian Hergert <christian@hergert.me>
Sat, 12 Mar 2022 06:36:26 +0000 (22:36 -0800)
This probably only matters if you do window list integration for the global
menu on macOS.

gdk/macos/gdkmacospopupsurface.c

index 797fe872da08bba5efcf1ab07078090003f5dda4..061af9d85df66f02a376030d615414c4af7c0159 100644 (file)
@@ -346,7 +346,7 @@ _gdk_macos_popup_surface_new (GdkMacosDisplay *display,
   [window setOpaque:NO];
   [window setBackgroundColor:[NSColor clearColor]];
   [window setDecorated:NO];
-
+  [window setExcludedFromWindowsMenu:YES];
   [window setLevel:NSPopUpMenuWindowLevel];
 
   self = g_object_new (GDK_TYPE_MACOS_POPUP_SURFACE,