mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
remove another DefaultRootWindow
This commit is contained in:
parent
024fba4649
commit
94824d2314
1 changed files with 9 additions and 7 deletions
16
event.c
16
event.c
|
@ -194,13 +194,15 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
||||||
resizemouse(c, awesomeconf);
|
resizemouse(c, awesomeconf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(DefaultRootWindow(e->xany.display) == ev->window && !sel)
|
else if(!sel)
|
||||||
{
|
for(i = 0; i < ScreenCount(e->xany.display); i++)
|
||||||
if(ev->button == Button4)
|
if(RootWindow(e->xany.display, i) == ev->window)
|
||||||
uicb_tag_viewnext(e->xany.display, &dc, awesomeconf, NULL);
|
{
|
||||||
else if(ev->button == Button5)
|
if(ev->button == Button4)
|
||||||
uicb_tag_viewprev(e->xany.display, &dc, awesomeconf, NULL);
|
uicb_tag_viewnext(e->xany.display, &dc, awesomeconf, NULL);
|
||||||
}
|
else if(ev->button == Button5)
|
||||||
|
uicb_tag_viewprev(e->xany.display, &dc, awesomeconf, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue