mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
return if no widget match
This commit is contained in:
parent
2a574a9cda
commit
ce41ed1eeb
1 changed files with 4 additions and 0 deletions
4
event.c
4
event.c
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue