cosmectic, move x in if block
This commit is contained in:
parent
2b5141b05a
commit
2677cc3515
4
event.c
4
event.c
|
@ -117,13 +117,13 @@ resizemouse(Client * c, awesome_config *awesomeconf)
|
||||||
void
|
void
|
||||||
handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
||||||
{
|
{
|
||||||
int i, x;
|
int i;
|
||||||
Client *c;
|
Client *c;
|
||||||
XButtonPressedEvent *ev = &e->xbutton;
|
XButtonPressedEvent *ev = &e->xbutton;
|
||||||
|
|
||||||
if(awesomeconf->statusbar.window == ev->window)
|
if(awesomeconf->statusbar.window == ev->window)
|
||||||
{
|
{
|
||||||
x = 0;
|
int x = 0;
|
||||||
for(i = 0; i < awesomeconf->ntags; i++)
|
for(i = 0; i < awesomeconf->ntags; i++)
|
||||||
{
|
{
|
||||||
x += textw(awesomeconf->tags[i]);
|
x += textw(awesomeconf->tags[i]);
|
||||||
|
|
Loading…
Reference in New Issue