Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
evhandlers.c focus.c
Log Message:
Fix some focus bugs.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/evhandlers.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -3 -r1.148 -r1.149
--- evhandlers.c 6 Feb 2004 19:56:26 -0000 1.148
+++ evhandlers.c 7 Feb 2004 00:30:23 -0000 1.149
@@ -138,6 +138,10 @@
EDBUG(5, "HandleFocusOut");
+ /* Do nothing if the focus is passed down to child */
+ if (ev->xfocus.detail == NotifyInferior)
+ goto exit;
+
ewin = FindItem(NULL, win, LIST_FINDBY_ID, LIST_TYPE_EWIN);
if (ewin && ewin->active)
{
@@ -147,6 +151,7 @@
FocusEwinSetGrabs(ewin);
}
+ exit:
EDBUG_RETURN_;
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/focus.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- focus.c 4 Feb 2004 20:32:06 -0000 1.45
+++ focus.c 7 Feb 2004 00:30:23 -0000 1.46
@@ -490,6 +490,11 @@
void
FocusHandleLeave(XEvent * ev)
{
+ Window win = ev->xcrossing.window;
+
+ /* Leaving root means entering other screen */
+ if (win == root.win)
+ FocusToEWin(NULL, FOCUS_SET);
}
#if 0
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs