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

View File

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