Another attempt to fix pointer focus breakage.
SVN revision: 51582
This commit is contained in:
parent
a0e1b55b37
commit
c7b7bb107e
14
src/focus.c
14
src/focus.c
|
@ -617,13 +617,6 @@ FocusHandleEnter(EWin * ewin, XEvent * ev)
|
|||
ev->xcrossing.detail == NotifyNonlinearVirtual)
|
||||
return;
|
||||
|
||||
if (!ewin)
|
||||
{
|
||||
/* Entering root may mean entering this screen */
|
||||
FocusToEWin(NULL, FOCUS_DESK_ENTER);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((int)ev->xcrossing.serial - focus_request < 0)
|
||||
{
|
||||
/* This event was caused by a request older than the latest
|
||||
|
@ -633,6 +626,13 @@ FocusHandleEnter(EWin * ewin, XEvent * ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!ewin)
|
||||
{
|
||||
/* Entering root may mean entering this screen */
|
||||
FocusToEWin(NULL, FOCUS_DESK_ENTER);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (Conf.focus.mode)
|
||||
{
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue