summaryrefslogtreecommitdiff
path: root/src/privatewindow.h
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-23 22:36:30 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-23 22:36:30 +0800
commite4489612952606501869d63b8119bed61d8ee4ed (patch)
tree21b641fe58a581bc62c3b2b1786d46ed54a8234b /src/privatewindow.h
parent89c2611d0b9e956ddb437cf8a4155110da4903a1 (diff)
downloadmobileperf-e4489612952606501869d63b8119bed61d8ee4ed.tar.gz
mobileperf-e4489612952606501869d63b8119bed61d8ee4ed.tar.bz2
Don't treat synthetic UnmapNotify the same as the real UnmapNotify
ICCCM section 4.1.4 says that applications need to send us a synthetic UnmapNotify to tell us that the window has been withdrawn in all cases to cover the case where a window is already unmapped and then withdrawn. In this case we should handle the UnmapNotify as a request to withdraw the window, but we should only handle the *real* UnmapNotify request as a request to actually process the window being unmapped and withdraw it there, rather than processing both twice and withdrawing the window twice
Diffstat (limited to 'src/privatewindow.h')
-rw-r--r--src/privatewindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index 4bed1bc..2b2d6a4 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -137,6 +137,8 @@ class PrivateWindow {
void show ();
+ void withdraw ();
+
bool handlePingTimeout (unsigned int lastPing);
void handlePing (int lastPing);