Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x.c Log Message: XWarpPointer wrapper =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.107 retrieving revision 1.108 diff -u -3 -r1.107 -r1.108 --- Ecore_X.h 13 Apr 2005 15:47:35 -0000 1.107 +++ Ecore_X.h 22 Apr 2005 08:46:04 -0000 1.108 @@ -1230,6 +1230,7 @@ EAPI int ecore_x_pointer_grab(Ecore_X_Window win); EAPI int ecore_x_pointer_confine_grab(Ecore_X_Window win); EAPI void ecore_x_pointer_ungrab(void); +EAPI int ecore_x_pointer_warp(Ecore_X_Window win, int x, int y); EAPI int ecore_x_keyboard_grab(Ecore_X_Window win); EAPI void ecore_x_keyboard_ungrab(void); EAPI void ecore_x_grab(void); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -3 -r1.70 -r1.71 --- ecore_x.c 13 Apr 2005 15:47:51 -0000 1.70 +++ ecore_x.c 22 Apr 2005 08:46:05 -0000 1.71 @@ -1,3 +1,6 @@ +/* + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 + */ #include "ecore_private.h" #include "Ecore.h" #include "ecore_x_private.h" @@ -1274,6 +1277,12 @@ } int +ecore_x_pointer_warp(Ecore_X_Window win, int x, int y) +{ + return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y); +} + +int ecore_x_keyboard_grab(Ecore_X_Window win) { return XGrabKeyboard(_ecore_x_disp, win, False, ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs