Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
borders.c focus.c
Log Message:
Ajust (primarily click-to-focus) context window behavior.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/borders.c,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -3 -r1.156 -r1.157
--- borders.c 1 Apr 2004 22:41:20 -0000 1.156
+++ borders.c 4 Apr 2004 21:32:37 -0000 1.157
@@ -184,12 +184,19 @@
EWin *
GetContextEwin(void)
{
+ EWin *ewin;
+
EDBUG(4, "GetContextEwin");
- if (Mode.focuswin)
- EDBUG_RETURN(Mode.focuswin);
+ ewin = Mode.mouse_over_win;
+ if (ewin && !ewin->menu)
+ EDBUG_RETURN(ewin);
+
+ ewin = Mode.focuswin;
+ if (ewin && !ewin->menu)
+ EDBUG_RETURN(ewin);
- EDBUG_RETURN(Mode.mouse_over_win);
+ return NULL;
}
void
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/focus.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -3 -r1.61 -r1.62
--- focus.c 1 Apr 2004 22:41:21 -0000 1.61
+++ focus.c 4 Apr 2004 21:32:37 -0000 1.62
@@ -462,6 +462,10 @@
SubstructureRedirectMask | KeyPressMask | KeyReleaseMask |
PointerMotionMask);
+ /* Set the mouse-over window */
+ ewin = GetEwinByCurrentPointer();
+ Mode.mouse_over_win = ewin;
+
ewin = FocusEwinSelect();
if (ewin)
FocusToEWin(ewin, FOCUS_DESK_ENTER);
@@ -493,7 +497,6 @@
}
ewin = GetEwinByCurrentPointer();
-
Mode.mouse_over_win = ewin;
switch (Conf.focus.mode)
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs