X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;h=768176abcb218cae14fa026f4cce42675b3e197f;hb=b0f43a115909a810bca9bbfa664851703bfd43e1;hp=461a2f2a3727948d76f7a4786b0d25ab0430b2d6;hpb=26fc54c9a3d7ef92ef3748b7d4d57e57a71ea798;p=chaz%2Fopenbox 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); }