1
=== modified file 'src/window.cpp'
2
--- a/src/window.cpp 2011-04-08 11:40:39 +0000
3
+++ b/src/window.cpp 2011-04-12 12:18:18 +0000
6
Colormap cmap = DefaultColormap (screen->dpy (),
8
+ bool success = false;
10
if (frame || attrib.override_redirect)
12
@@ -5700,17 +5701,22 @@
13
* reparented themselves on the server side but not
14
* on the client side */
16
- XQueryTree (dpy, id, &root_return, &parent_return, &children, &nchildren);
18
- if (parent_return != root_return)
21
- XUngrabServer (dpy);
26
- if (!XGetWindowAttributes (dpy, id, &wa))
27
+ success = XQueryTree (dpy, id, &root_return,
28
+ &parent_return, &children, &nchildren);
30
+ if (success && parent_return != root_return)
36
+ if (success && !XGetWindowAttributes (dpy, id, &wa))