From: Marcelo Cerri Date: Thu, 26 Jan 2012 12:22:15 +0000 (-0200) Subject: Fixed worspace clicking area for i3bar (branch next) X-Git-Tag: 4.2~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a2673d08a643e4535dd78ff1730f0c4ae5f11d5;p=i3%2Fi3 Fixed worspace clicking area for i3bar (branch next) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 40a025f1..a17812ba 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -267,10 +267,10 @@ void handle_button(xcb_button_press_event_t *event) { * and set cur_ws accordingly */ TAILQ_FOREACH(cur_ws, walk->workspaces, tailq) { DLOG("x = %d\n", x); - if (x < cur_ws->name_width + 10) { + if (x < cur_ws->name_width + 12) { break; } - x -= cur_ws->name_width + 10; + x -= cur_ws->name_width + 12; } if (cur_ws == NULL) { return;