From: Michael Stapelberg Date: Sun, 6 Mar 2011 01:06:05 +0000 (+0100) Subject: Bugfix: don’t focus dock clients with new click handling code (Thanks mseed) X-Git-Tag: tree-pr2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88ab66e742c62bae389116065b6e2267a51b1d8c;p=i3%2Fi3 Bugfix: don’t focus dock clients with new click handling code (Thanks mseed) --- diff --git a/src/click.c b/src/click.c index 8c0d7f66..8028f683 100644 --- a/src/click.c +++ b/src/click.c @@ -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);