summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-15 10:02:07 -0500
committerDana Jansens <danakj@orodu.net>2008-02-15 10:03:55 -0500
commitdb49122dece88956856606fe4c17158859f81837 (patch)
tree8e6e7169fe867f9829f5e40837f5b3a297c95771 /openbox/menuframe.c
parentbeae040a8145e4dbe5444720152b9176660433d8 (diff)
parent4b71209ec89902e2f88522603deeab8b240b34c3 (diff)
Merge branch 'backport' into work
Conflicts: openbox/frame.c openbox/menuframe.c
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c5
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));