Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x.c
Log Message:
dont loop over screens - pointless
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- ecore_x.c 10 Nov 2006 15:01:25 -0000 1.119
+++ ecore_x.c 11 Nov 2006 04:27:07 -0000 1.120
@@ -603,33 +603,25 @@
EAPI void
ecore_x_killall(Ecore_X_Window root)
{
- unsigned int screens;
unsigned int i, j;
-
+ Window root_r;
+ Window parent_r;
+ Window *children_r = NULL;
+ unsigned int num_children = 0;
+
XGrabServer(_ecore_x_disp);
- screens = ScreenCount(_ecore_x_disp);
-
/* Tranverse window tree starting from root, and drag each
* before the firing squad */
- for (i = 0; i < screens; ++i)
+ while (XQueryTree(_ecore_x_disp, root, &root_r, &parent_r,
+ &children_r, &num_children) && (num_children > 0))
{
- Window root_r;
- Window parent_r;
- Window *children_r = NULL;
- unsigned int num_children = 0;
-
- while (XQueryTree(_ecore_x_disp, root, &root_r, &parent_r,
- &children_r, &num_children) && (num_children > 0))
+ for (j = 0; j < num_children; ++j)
{
- for (j = 0; j < num_children; ++j)
- {
- XKillClient(_ecore_x_disp, children_r[j]);
- }
-
- XFree(children_r);
+ XKillClient(_ecore_x_disp, children_r[j]);
}
+
+ XFree(children_r);
}
-
XUngrabServer(_ecore_x_disp);
XSync(_ecore_x_disp, False);
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs