cosmectic, move x in if block

This commit is contained in:
Julien Danjou 2007-09-11 17:51:48 +02:00
parent 2b5141b05a
commit 2677cc3515
1 changed files with 2 additions and 2 deletions

View File

@ -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]);