diff options
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 730f23f7..867aa81c 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -25,6 +25,7 @@ #include "grab.h" #include "openbox.h" #include "config.h" +#include "obt/prop.h" #include "render/theme.h" #define PADDING 2 @@ -88,6 +89,10 @@ ObMenuFrame* menu_frame_new(ObMenu *menu, guint show_from, ObClient *client) self->window = createWindow(obt_root(ob_screen), CWEventMask, &attr); + /* make it a popup menu type window */ + OBT_PROP_SET32(self->window, NET_WM_WINDOW_TYPE, ATOM, + OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_POPUP_MENU)); + XSetWindowBorderWidth(obt_display, self->window, ob_rr_theme->mbwidth); XSetWindowBorder(obt_display, self->window, RrColorPixel(ob_rr_theme->menu_border_color)); |
