all repos — openbox @ 0c8aca23eb94efe740acffc6c20ab73794da2218

openbox fork - make it a bit more like ryudo

set the window type hint on menus to be "popup menus"
Dana Jansens danakj@orodu.net
commit

0c8aca23eb94efe740acffc6c20ab73794da2218

parent

cec5480108e2d4158ba5086223e07cc34587dff5

3 files changed, 10 insertions(+), 0 deletions(-)

jump to
M openbox/menuframe.copenbox/menuframe.c

@@ -21,6 +21,7 @@ #include "menuframe.h"

#include "client.h" #include "menu.h" #include "screen.h" +#include "prop.h" #include "actions.h" #include "grab.h" #include "openbox.h"

@@ -88,6 +89,10 @@

attr.event_mask = FRAME_EVENTMASK; 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,
M openbox/prop.copenbox/prop.c

@@ -112,6 +112,7 @@ CREATE(net_wm_window_type_utility, "_NET_WM_WINDOW_TYPE_UTILITY");

CREATE(net_wm_window_type_splash, "_NET_WM_WINDOW_TYPE_SPLASH"); CREATE(net_wm_window_type_dialog, "_NET_WM_WINDOW_TYPE_DIALOG"); CREATE(net_wm_window_type_normal, "_NET_WM_WINDOW_TYPE_NORMAL"); + CREATE(net_wm_window_type_popup_menu, "_NET_WM_WINDOW_TYPE_POPUP_MENU"); prop_atoms.net_wm_moveresize_size_topleft = 0; prop_atoms.net_wm_moveresize_size_top = 1;
M openbox/prop.hopenbox/prop.h

@@ -86,6 +86,10 @@ Atom net_wm_topright;

Atom net_wm_bottomright; Atom net_wm_bottomleft; + /* types that we use but don't support */ + + Atom net_wm_window_type_popup_menu; + /* Everything below here must go in net_supported on the root window */ /* root window properties */