summaryrefslogtreecommitdiff
path: root/src/privatewindow.h
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2011-01-24 09:12:17 +0800
committerSam Spilsbury <smspillaz@gmail.com>2011-01-24 09:12:17 +0800
commit3136c5ce407b04b363b0edd1fed9772188a87457 (patch)
treef82b98abf78b18d43e103b9b3c1d72865772beba /src/privatewindow.h
parenta1059c83ebb25e31a8dc67d6dfe6c25bff3fa690 (diff)
downloadmobileperf-3136c5ce407b04b363b0edd1fed9772188a87457.tar.gz
mobileperf-3136c5ce407b04b363b0edd1fed9772188a87457.tar.bz2
Don't make if-statement depend on XWindowAttributes which might be garbage.
The window could have been destroyed by the time we do XGetWindowAttributes on it, so we need to check if that's the case. We still add it to the tree anyways - but only because in between the time when we handle the DestroyNotify for it and the CreateNotify, some windows might have done a ConfigureRequest asking us to stack windows relative to it
Diffstat (limited to 'src/privatewindow.h')
-rw-r--r--src/privatewindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index ecf6dc3..f2f9609 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -308,7 +308,7 @@ class CoreWindow
{
public:
- CoreWindow (Window id);
+ CoreWindow (Window id, XWindowAttributes &wa);
CompWindow * manage (Window id);