Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: ipc.c Log Message: Debug commands to set/unset pointer grabs. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v retrieving revision 1.176 retrieving revision 1.177 diff -u -3 -r1.176 -r1.177 --- ipc.c 7 Aug 2004 21:00:09 -0000 1.176 +++ ipc.c 7 Aug 2004 23:11:44 -0000 1.177 @@ -4417,25 +4417,40 @@ } static void -IPC_Debug(const char *params, Client * c) +IPC_Debug(const char *params, Client * c __UNUSED__) { - char buf[FILEPATH_LEN_MAX]; - char param1[FILEPATH_LEN_MAX]; - char param2[FILEPATH_LEN_MAX]; - - buf[0] = 0; - param1[0] = 0; - param2[0] = 0; + char param[1024]; + int l; + const char *p; - word(params, 1, param1); - word(params, 2, param2); + p = params; + l = 0; + sscanf(p, "%1000s %n", param, &l); + p += l; - if (!strncmp(param1, "event", 2)) + if (!strncmp(param, "event", 2)) { - EventDebugInit(param2); + EventDebugInit(p); } + else if (!strncmp(param, "grab", 2)) + { + Window win; - CommsSend(c, buf); + l = 0; + sscanf(p, "%1000s %n", param, &l); + p += l; + if (!strncmp(param, "unset", 2)) + { + UnGrabTheButtons(); + IpcPrintf("Ungrab\n"); + } + else + { + sscanf(param, "%li", &win); + GrabConfineThePointer(win, ECSR_ACT_RESIZE); + IpcPrintf("Grab %#lx\n", win); + } + } } static void ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs