Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: focus.c warp.c Log Message: Focus list tweaks. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/focus.c,v retrieving revision 1.108 retrieving revision 1.109 diff -u -3 -r1.108 -r1.109 --- focus.c 9 Jul 2005 18:54:22 -0000 1.108 +++ focus.c 9 Jul 2005 22:55:56 -0000 1.109 @@ -366,8 +366,11 @@ if (Conf.focus.warp_always) do_warp = 1; if (do_warp && ewin != Mode.mouse_over_ewin) - XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, EoGetW(ewin) / 2, - EoGetH(ewin) / 2); + { + XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, EoGetW(ewin) / 2, + EoGetH(ewin) / 2); + Mode.mouse_over_ewin = ewin; + } RemoveTimerEvent("REVERSE_FOCUS_TIMEOUT"); switch (why) =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/warp.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -3 -r1.71 -r1.72 --- warp.c 9 Jul 2005 10:27:39 -0000 1.71 +++ warp.c 9 Jul 2005 22:55:56 -0000 1.72 @@ -284,15 +284,19 @@ if (!ewin) return; + WarpFocusShow(ewin); + if (Conf.focus.raise_on_next) RaiseEwin(ewin); if (Conf.focus.warp_on_next) if (ewin != Mode.mouse_over_ewin && !ewin->state.iconified) - XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, - EoGetW(ewin) / 2, EoGetH(ewin) / 2); + { + XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, + EoGetW(ewin) / 2, EoGetH(ewin) / 2); + Mode.mouse_over_ewin = ewin; + } if (Conf.warplist.warpfocused) FocusToEWin(ewin, FOCUS_SET); - WarpFocusShow(ewin); } static void @@ -333,8 +337,11 @@ RaiseEwin(ewin); if (Conf.warplist.warp_on_select) if (ewin != Mode.mouse_over_ewin) - XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, - EoGetW(ewin) / 2, EoGetH(ewin) / 2); + { + XWarpPointer(disp, None, EoGetWin(ewin), 0, 0, 0, 0, + EoGetW(ewin) / 2, EoGetH(ewin) / 2); + Mode.mouse_over_ewin = ewin; + } FocusToEWin(ewin, FOCUS_SET); } ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs