compute x one time only
This commit is contained in:
parent
b00f9ab1f6
commit
eb414ce447
5
event.c
5
event.c
|
@ -179,9 +179,10 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
|||
return;
|
||||
}
|
||||
}
|
||||
if((ev->x < x + awesomeconf[screen].statusbar.width) && ev->button == Button1)
|
||||
x += awesomeconf[screen].statusbar.width;
|
||||
if(ev->x < x && ev->button == Button1)
|
||||
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "+1");
|
||||
else if((ev->x < x + awesomeconf[screen].statusbar.width) && ev->button == Button3)
|
||||
else if(ev->x < x && ev->button == Button3)
|
||||
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "-1");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue