summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-07 09:30:00 +0000
committerDana Jansens <danakj@orodu.net>2003-01-07 09:30:00 +0000
commit6062fe404ce5f2505494132d5454370d696625ca (patch)
tree36c73bd4e97415ce4570b3801b49786e257e754b /src/client.cc
parentf1ce4e660fe96816a699a89746a6105eca09babd (diff)
handle unmaps better. all thanks to acroread sending wacky unmap events
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client.cc b/src/client.cc
index 320fe4d7..d38ca79b 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -1219,15 +1219,18 @@ void OBClient::configureRequestHandler(const XConfigureRequestEvent &e)
void OBClient::unmapHandler(const XUnmapEvent &e)
{
+ if (ignore_unmaps) {
#ifdef DEBUG
- printf("UnmapNotify for 0x%lx\n", e.window);
+ printf("Ignored UnmapNotify for 0x%lx (event 0x%lx)\n", e.window, e.event);
#endif // DEBUG
-
- if (ignore_unmaps) {
ignore_unmaps--;
return;
}
+#ifdef DEBUG
+ printf("UnmapNotify for 0x%lx\n", e.window);
+#endif // DEBUG
+
OtkEventHandler::unmapHandler(e);
// this deletes us etc