Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
focus.c
Log Message:
Fix multihead focus.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/focus.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -3 -r1.88 -r1.89
--- focus.c 10 Jan 2005 23:32:22 -0000 1.88
+++ focus.c 14 Jan 2005 00:03:50 -0000 1.89
@@ -349,16 +349,20 @@
SoundPlay("SOUND_FOCUS_SET");
done:
- /* Quit if pointer is not on our screen */
- if (!PointerAt(NULL, NULL))
- EDBUG_RETURN_;
-
/* Unset old focus window (if any) highlighting */
if (Mode.focuswin)
FocusEwinSetActive(Mode.focuswin, 0);
ICCCM_Cmap(ewin);
- Mode.focuswin = ewin;
+
+ /* Quit if pointer is not on our screen */
+ if (!PointerAt(NULL, NULL))
+ {
+ Mode.focuswin = NULL;
+ EDBUG_RETURN_;
+ }
+
/* Set new focus window (if any) highlighting */
+ Mode.focuswin = ewin;
if (Mode.focuswin)
FocusEwinSetActive(Mode.focuswin, 1);
if (why != FOCUS_DESK_LEAVE)
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs