return if no widget match

This commit is contained in:
Julien Danjou 2008-01-24 20:28:45 +01:00
parent 2a574a9cda
commit ce41ed1eeb

View file

@ -73,6 +73,7 @@ handle_event_buttonpress(XEvent *e)
for(screen = 0; screen < globalconf.nscreen; screen++)
for(statusbar = globalconf.screens[screen].statusbar; statusbar; statusbar = statusbar->next)
if(statusbar->sw->window == ev->window || statusbar->sw->window == ev->subwindow)
{
switch(statusbar->position)
{
case Top:
@ -110,6 +111,9 @@ handle_event_buttonpress(XEvent *e)
case Off:
break;
}
/* return if no widget match */
return;
}
if((c = get_client_bywin(globalconf.clients, ev->window)))
{