]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
Don't kill keygrabs when focus moves.
[chaz/openbox] / openbox / focus.c
index c2d7e11e5dd879d8a776fd7bfb65ce0524d1d3db..8c3bd70a82e69bc89a6ef769736525abf10c3dc5 100644 (file)
@@ -83,10 +83,6 @@ void focus_set_client(ObClient *client)
     screen_install_colormap(focus_client, FALSE);
     screen_install_colormap(client, TRUE);
 
-    /* in the middle of cycling..? kill it. */
-    focus_cycle_stop(focus_client);
-    focus_cycle_stop(client);
-
     focus_client = client;
 
     if (client != NULL) {
@@ -197,15 +193,6 @@ void focus_nothing(void)
     /* nothing is focused, update the colormap and _the root property_ */
     focus_set_client(NULL);
 
-    /* if there is a grab going on, then we need to cancel it. if we move
-       focus during the grab, applications will get NotifyWhileGrabbed events
-       and ignore them !
-
-       actions should not rely on being able to move focus during an
-       interactive grab.
-    */
-    event_cancel_all_key_grabs();
-
     /* when nothing will be focused, send focus to the backup target */
     XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot,
                    event_curtime);
@@ -366,4 +353,3 @@ gboolean focus_valid_target(ObClient *ft,
 
     return ok;
 }
-
This page took 0.020918 seconds and 4 git commands to generate.