From: <enl...@li...> - 2004-06-30 13:04:34
|
Enlightenment CVS committal Author : kwo Project : e16 Module : e Dir : e16/e/eesh Modified Files: comms.c Log Message: Nested E. Maybe not really useful (yet?) but good for debugging and fun toy. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/eesh/comms.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- comms.c 21 Mar 2004 01:37:31 -0000 1.10 +++ comms.c 30 Jun 2004 13:03:57 -0000 1.11 @@ -24,12 +24,20 @@ #include "E.h" char waitonly; +Window root_win; void CommsSetup() { + char *str; + EDBUG(5, "CommsSetup"); - my_win = XCreateSimpleWindow(disp, root.win, -100, -100, 5, 5, 0, 0, 0); + + str = getenv("ENL_WM_ROOT"); + root_win = (str) ? strtoul(str, NULL, 0) : root.win; + + my_win = XCreateSimpleWindow(disp, root_win, -100, -100, 5, 5, 0, 0, 0); + EDBUG_RETURN_; } @@ -49,7 +57,7 @@ if (a != None) { s = NULL; - XGetWindowProperty(disp, root.win, a, 0, 14, False, AnyPropertyType, + XGetWindowProperty(disp, root_win, a, 0, 14, False, AnyPropertyType, &ar, &format, &num, &after, &s); if (s) { |