]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Skip dock clients when handling FocusIn events (Thanks cradle)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 21 Nov 2011 19:55:41 +0000 (19:55 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 21 Nov 2011 19:55:41 +0000 (19:55 +0000)
src/handlers.c

index 5e628bdf334ad512d231234d313ec689411f9168..7ef562e54f28e5e5e028aa556776b1d869ae3b72 100644 (file)
@@ -968,6 +968,12 @@ static int handle_focus_in(xcb_focus_in_event_t *event) {
         return 1;
     }
 
+    /* Skip dock clients, they cannot get the i3 focus. */
+    if (con->parent->type == CT_DOCKAREA) {
+        DLOG("This is a dock client, not focusing.\n");
+        return 1;
+    }
+
     DLOG("focus is different, updating decorations\n");
 
     /* Get the currently focused workspace to check if the focus change also