From: Michael Stapelberg Date: Mon, 21 Nov 2011 19:55:41 +0000 (+0000) Subject: Bugfix: Skip dock clients when handling FocusIn events (Thanks cradle) X-Git-Tag: 4.1.1~34^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f8d719835832a91232d0331a25512e9a0853494;p=i3%2Fi3 Bugfix: Skip dock clients when handling FocusIn events (Thanks cradle) --- diff --git a/src/handlers.c b/src/handlers.c index 5e628bdf..7ef562e5 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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