]> git.sur5r.net Git - i3/i3/commitdiff
Fixed worspace clicking area for i3bar (branch next)
authorMarcelo Cerri <mhcerri@gmail.com>
Thu, 26 Jan 2012 12:22:15 +0000 (10:22 -0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 28 Jan 2012 10:08:14 +0000 (10:08 +0000)
i3bar/src/xcb.c

index 40a025f14a93cff2d483d1c5722cdb59400b17be..a17812baf00b17d9a0ee0963a657f23880df9010 100644 (file)
@@ -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;