diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-08 00:40:01 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-08 00:40:01 +0000 |
| commit | 5945d2e9c851a03d58ab364fe93136cbe5079c2b (patch) | |
| tree | 2182a3b6fb01279aedb0b49660f81cd84dce8aea /openbox/menuframe.c | |
| parent | 26fc54c9a3d7ef92ef3748b7d4d57e57a71ea798 (diff) | |
ok, so, back out the last commit. owner events are passed thru so we get enter/leave notify events.
dont change frame decor from button presses during an interactive grab or
while a menu is open
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 461a2f2a..768176ab 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -912,10 +912,10 @@ static gboolean menu_frame_show(ObMenuFrame *self) if (menu_frame_visible == NULL) { /* no menus shown yet */ - if (!grab_pointer(TRUE, FALSE, OB_CURSOR_POINTER)) + if (!grab_pointer(TRUE, TRUE, OB_CURSOR_POINTER)) return FALSE; if (!grab_keyboard(TRUE)) { - grab_pointer(FALSE, FALSE, OB_CURSOR_POINTER); + grab_pointer(FALSE, TRUE, OB_CURSOR_POINTER); return FALSE; } } @@ -1024,7 +1024,7 @@ void menu_frame_hide(ObMenuFrame *self) if (menu_frame_visible == NULL) { /* last menu shown */ - grab_pointer(FALSE, FALSE, OB_CURSOR_NONE); + grab_pointer(FALSE, TRUE, OB_CURSOR_NONE); grab_keyboard(FALSE); } |
