]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
set the window type hint on menus to be "popup menus"
[chaz/openbox] / openbox / menuframe.c
index ce77fc0fe689e9adda7ce242d2976d12f4becbe4..54f0cdbc525df36cfc52b27911316a2184af4b56 100644 (file)
@@ -21,6 +21,7 @@
 #include "client.h"
 #include "menu.h"
 #include "screen.h"
+#include "prop.h"
 #include "actions.h"
 #include "grab.h"
 #include "openbox.h"
@@ -89,6 +90,10 @@ ObMenuFrame* menu_frame_new(ObMenu *menu, guint show_from, ObClient *client)
     self->window = createWindow(RootWindow(ob_display, ob_screen),
                                 CWEventMask, &attr);
 
+    /* make it a popup menu type window */
+    PROP_SET32(self->window, net_wm_window_type, atom,
+               prop_atoms.net_wm_window_type_popup_menu);
+
     XSetWindowBorderWidth(ob_display, self->window, ob_rr_theme->mbwidth);
     XSetWindowBorder(ob_display, self->window,
                      RrColorPixel(ob_rr_theme->menu_border_color));
This page took 0.020573 seconds and 4 git commands to generate.