summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-05-25 11:17:55 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-05-25 11:17:55 +0800
commit9dfc10833674daeda42f06692a8710b630ce5b1d (patch)
treeeb665727a43c1b0188dd8f18ee3a13134244f691 /src
parent3ea8ae7436af890ee82f1855e1a8ca4c6a76407f (diff)
downloadmobilebling-9dfc10833674daeda42f06692a8710b630ce5b1d.tar.gz
mobilebling-9dfc10833674daeda42f06692a8710b630ce5b1d.tar.bz2
Fix events going to frame windows when they shouldn't
since the client is already unmapped and there is no reason a huge frame window should block input when the client is animating out anyways
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 4e222ab..a04ee26 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1313,6 +1313,15 @@ CompWindow::unmap ()
if (priv->mapNum)
priv->mapNum = 0;
+ /* Even though we're still keeping the backing
+ * pixmap of the window around, it's safe to
+ * unmap the frame window since there's no use
+ * for it at this point anyways and it just blocks
+ * input */
+
+ XUnmapWindow (screen->dpy (), priv->wrapper);
+ XUnmapWindow (screen->dpy (), priv->frame);
+
priv->unmapRefCnt--;
if (priv->unmapRefCnt > 0)
return;