Enlightenment CVS committal
Author : morlenxus
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
Fixed: Pointer sliding (focus) shouldn't happen when dragging in...
Bugzilla: 380
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.624
retrieving revision 1.625
diff -u -3 -r1.624 -r1.625
--- e_border.c 24 Jan 2008 23:59:16 -0000 1.624
+++ e_border.c 6 Feb 2008 00:03:23 -0000 1.625
@@ -1353,6 +1353,10 @@
EAPI void
e_border_focus_set_with_pointer(E_Border *bd)
{
+ /* Try to grab the pointer to make sure it's not "in use" */
+ if (!ecore_x_pointer_grab(bd->zone->container->win))
+ return;
+
if (e_config->focus_policy == E_FOCUS_SLOPPY)
{
if (e_border_under_pointer_get(bd->desk, bd))
@@ -1368,6 +1372,8 @@
else
if (!e_border_pointer_warp_to_center(bd))
e_border_focus_set(bd, 1, 1);
+
+ ecore_x_pointer_ungrab();
}
EAPI void
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs