Fix screen detection in keypress for supporting Xinerama
This commit is contained in:
parent
3bba90fa38
commit
491b5611c2
3
event.c
3
event.c
|
@ -343,9 +343,6 @@ handle_event_keypress(XEvent * e, awesome_config *awesomeconf)
|
|||
keysym = XKeycodeToKeysym(e->xany.display, (KeyCode) ev->keycode, 0);
|
||||
|
||||
/* find the right screen for this event */
|
||||
if(sel)
|
||||
screen = sel->screen;
|
||||
else
|
||||
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
|
||||
if(XQueryPointer(e->xany.display, RootWindow(e->xany.display, screen), &dummy, &dummy, &x, &y, &d, &d, &m))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue