From 0c8aca23eb94efe740acffc6c20ab73794da2218 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 14 Feb 2008 23:04:54 -0500 Subject: set the window type hint on menus to be "popup menus" --- openbox/menuframe.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/menuframe.c') diff --git a/openbox/menuframe.c b/openbox/menuframe.c index ce77fc0f..54f0cdbc 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -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)); -- cgit v1.2.3