check for subwindow

Fix FS#31

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Nikos Ntarmos 2008-01-11 19:18:43 +01:00 committed by Julien Danjou
parent 9bc67800d2
commit c36ef2797b
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ handle_event_buttonpress(XEvent *e)
for(screen = 0; screen < globalconf.nscreens; screen++) for(screen = 0; screen < globalconf.nscreens; screen++)
for(statusbar = globalconf.screens[screen].statusbar; statusbar; statusbar = statusbar->next) for(statusbar = globalconf.screens[screen].statusbar; statusbar; statusbar = statusbar->next)
if(statusbar->window == ev->window) if(statusbar->window == ev->window || statusbar->window == ev->subwindow)
switch(statusbar->position) switch(statusbar->position)
{ {
case Top: case Top: