]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: don’t focus dock clients with new click handling code (Thanks mseed)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 6 Mar 2011 01:06:05 +0000 (02:06 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 6 Mar 2011 01:06:05 +0000 (02:06 +0100)
src/click.c

index 8c0d7f661b186a0c6e5b70c9e1a704a7f055b46a..8028f683cef2c29c7d809772e9d675af268e5f82 100644 (file)
@@ -150,6 +150,10 @@ static int route_click(Con *con, xcb_button_press_event_t *event, bool mod_press
     DLOG("--> OUTCOME = %p\n", con);
     DLOG("type = %d, name = %s\n", con->type, con->name);
 
+    /* don’t handle dockarea cons, they must not be focused */
+    if (con->parent->type == CT_DOCKAREA)
+        goto done;
+
     /* get the floating con */
     Con *floatingcon = con_inside_floating(con);
     const bool proportional = (event->state & BIND_SHIFT);