Revert "fix bug in Xinerama when mouse is not in the same screen that mouse"
This reverts commit 845984fed0
.
This commit is contained in:
parent
845984fed0
commit
47ec01e571
5
event.c
5
event.c
|
@ -342,7 +342,7 @@ handle_event_expose(XEvent * e, awesome_config *awesomeconf)
|
|||
void
|
||||
handle_event_keypress(XEvent * e, awesome_config *awesomeconf)
|
||||
{
|
||||
int i, screen = 0, x, y, d;
|
||||
int i, screen, x, y, d;
|
||||
unsigned int m;
|
||||
KeySym keysym;
|
||||
XKeyEvent *ev = &e->xkey;
|
||||
|
@ -351,9 +351,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