Fixed worspace clicking area for i3bar (branch next)
This commit is contained in:
parent
cc8a3c1019
commit
5a2673d08a
|
@ -267,10 +267,10 @@ void handle_button(xcb_button_press_event_t *event) {
|
||||||
* and set cur_ws accordingly */
|
* and set cur_ws accordingly */
|
||||||
TAILQ_FOREACH(cur_ws, walk->workspaces, tailq) {
|
TAILQ_FOREACH(cur_ws, walk->workspaces, tailq) {
|
||||||
DLOG("x = %d\n", x);
|
DLOG("x = %d\n", x);
|
||||||
if (x < cur_ws->name_width + 10) {
|
if (x < cur_ws->name_width + 12) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
x -= cur_ws->name_width + 10;
|
x -= cur_ws->name_width + 12;
|
||||||
}
|
}
|
||||||
if (cur_ws == NULL) {
|
if (cur_ws == NULL) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue