summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2011-12-14 16:53:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-21 12:38:35 +1000
commit8e58ce73c8b79cb86e890369d0216cdd850c52a5 (patch)
treedfbc622bd9d5c19e95ec08e0c1016aebc6f06a3a /dix
parentc18a173cf5f53778356c5e8f25ab132956f8c27d (diff)
dix: when a window disappears, remove it from the touch sprite trace
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/dix/window.c b/dix/window.c
index 1953f025b..823294b9a 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -131,6 +131,7 @@ Equipment Corporation.
#include "privates.h"
#include "xace.h"
+#include "exevents.h"
#include <X11/Xatom.h> /* must come after server includes */
@@ -2971,8 +2972,10 @@ UnmapWindow(WindowPtr pWin, Bool fromConfigure)
if (!fromConfigure && pScreen->PostValidateTree)
(*pScreen->PostValidateTree)(pLayerWin->parent, pWin, VTUnmap);
}
- if (wasRealized && !fromConfigure)
+ if (wasRealized && !fromConfigure) {
WindowsRestructured ();
+ WindowGone(pWin);
+ }
return Success;
}
@@ -3055,8 +3058,10 @@ UnmapSubwindows(WindowPtr pWin)
if (anyMarked && pScreen->PostValidateTree)
(*pScreen->PostValidateTree)(pLayerWin->parent, pHead, VTUnmap);
}
- if (wasRealized)
+ if (wasRealized) {
WindowsRestructured ();
+ WindowGone(pWin);
+ }
}