fix mouse wheel on root window for Xinerama

This commit is contained in:
Julien Danjou 2007-10-29 20:21:13 +01:00
parent 96430ced33
commit d64d353d5b
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
else if(ev->button == Button5) else if(ev->button == Button5)
uicb_settrans(&awesomeconf[c->screen], "-5"); uicb_settrans(&awesomeconf[c->screen], "-5");
} }
else if(!get_current_tag(awesomeconf->tags, awesomeconf->ntags)->client_sel) else
for(screen = 0; screen < ScreenCount(e->xany.display); screen++) for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
if(RootWindow(e->xany.display, screen) == ev->window if(RootWindow(e->xany.display, screen) == ev->window
&& XQueryPointer(e->xany.display, ev->window, &wdummy, &wdummy, &x, &y, &i, &i, &udummy)) && XQueryPointer(e->xany.display, ev->window, &wdummy, &wdummy, &x, &y, &i, &i, &udummy))