From: Enlightenment S. <no-...@en...> - 2010-08-18 21:17:00
|
Log: Attempt to fix sloppy focus breakage on desks other than first. Focus was being switched back to mouse-over window. Noted by Ted Baltz. Author: kwo Date: 2010-08-18 14:16:54 -0700 (Wed, 18 Aug 2010) New Revision: 51354 Modified: trunk/E16/e/src/focus.c Modified: trunk/E16/e/src/focus.c =================================================================== --- trunk/E16/e/src/focus.c 2010-08-18 21:16:51 UTC (rev 51353) +++ trunk/E16/e/src/focus.c 2010-08-18 21:16:54 UTC (rev 51354) @@ -613,6 +613,10 @@ { Mode.mouse_over_ewin = ewin; + if (ev->xcrossing.mode == NotifyUngrab && + ev->xcrossing.detail == NotifyNonlinearVirtual) + return; + if (!ewin) { /* Entering root may mean entering this screen */ @@ -620,10 +624,6 @@ return; } - if (ev->xcrossing.mode == NotifyUngrab && - ev->xcrossing.detail == NotifyNonlinearVirtual) - return; - if ((int)ev->xcrossing.serial - focus_request < 0) { /* This event was caused by a request older than the latest |