This commit is contained in:
Julien Danjou 2008-01-24 20:22:39 +01:00
parent 0abb100adf
commit 30256b3be3
2 changed files with 5 additions and 5 deletions

View file

@ -96,7 +96,7 @@ handle_event_buttonpress(XEvent *e)
return;
}
break;
default:
case Left:
for(widget = statusbar->widgets; widget; widget = widget->next)
if(statusbar->sw->geometry.width - ev->y >= widget->area.x
&& statusbar->sw->geometry.width - ev->y
@ -107,6 +107,8 @@ handle_event_buttonpress(XEvent *e)
return;
}
break;
case Off:
break;
}
if((c = get_client_bywin(globalconf.clients, ev->window)))

View file

@ -160,10 +160,8 @@ void
statusbar_display(Statusbar *statusbar)
{
/* don't waste our time */
if(statusbar->position == Off)
return;
simplewindow_refresh_drawable(statusbar->sw, get_phys_screen(statusbar->screen));
if(statusbar->position != Off)
simplewindow_refresh_drawable(statusbar->sw, get_phys_screen(statusbar->screen));
}
void