Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ipc.c
Log Message:
Add warp pointer to other screen command.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -3 -r1.206 -r1.207
--- ipc.c 26 Feb 2005 16:40:36 -0000 1.206
+++ ipc.c 10 Mar 2005 23:22:53 -0000 1.207
@@ -1249,6 +1249,14 @@
sscanf(params, "%*s %i %i", &x, &y);
XWarpPointer(disp, None, None, 0, 0, 0, 0, x, y);
}
+ else if (!strncmp(params, "scr", 3))
+ {
+ x = (VRoot.scr + 1) % ScreenCount(disp);
+ sscanf(params, "%*s %i", &x);
+ if (x >= 0 && x < ScreenCount(disp))
+ XWarpPointer(disp, None, RootWindow(disp, x), 0, 0, 0, 0,
+ DisplayWidth(disp, x) / 2, DisplayHeight(disp, x) / 2);
+ }
else
{
sscanf(params, "%i %i", &x, &y);
@@ -1496,6 +1504,7 @@
" warp ? Get pointer position\n"
" warp abs <x> <y> Set pointer position\n"
" warp rel <x> <y> Move pointer relative to current position\n"
+ " warp scr [<i>] Move pointer to other screen (default next)\n"
" warp <x> <y> Same as \"warp rel\"\n"},
};
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs