summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 14:07:29 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 14:07:29 +0000
commitff43372da760c84e92ca7a7e9648d09fcfba2cf0 (patch)
tree138ab9559dd512ea0d6e998bcf1ee2baab0497d9 /openbox/menuframe.c
parenta70633d42af849e4de2288ec48fa6abe726a484e (diff)
only pass thru events when the menu is open, don't for other stuff
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index f359c985..2e54ef88 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -681,10 +681,10 @@ static gboolean menu_frame_show(ObMenuFrame *self)
if (menu_frame_visible == NULL) {
/* no menus shown yet */
- if (!grab_pointer(TRUE, OB_CURSOR_POINTER))
+ if (!grab_pointer(TRUE, TRUE, OB_CURSOR_POINTER))
return FALSE;
if (!grab_keyboard(TRUE)) {
- grab_pointer(FALSE, OB_CURSOR_POINTER);
+ grab_pointer(FALSE, TRUE, OB_CURSOR_POINTER);
return FALSE;
}
}
@@ -809,7 +809,7 @@ void menu_frame_hide(ObMenuFrame *self)
if (menu_frame_visible == NULL) {
/* last menu shown */
- grab_pointer(FALSE, OB_CURSOR_NONE);
+ grab_pointer(FALSE, TRUE, OB_CURSOR_NONE);
grab_keyboard(FALSE);
}