summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-08 10:08:16 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-08 10:08:16 -0500
commit254f87a94af907df630e98535662b762bd4c9ae5 (patch)
treeb0da3a1e280a4614c6c90c737a44e025af8c3e3f /src
parentffa7d89359818ebecf66aae9068f702e9ccf7139 (diff)
downloadzcomp-254f87a94af907df630e98535662b762bd4c9ae5.tar.gz
zcomp-254f87a94af907df630e98535662b762bd4c9ae5.tar.bz2
Add hasUnmapReference and use it in decor.
This prevents a window's decoration to be updated early while it is closing, which isn't necessary anyway. This problem leads to a close animation with an empty frame.
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 467bc2f..2d5fbe4 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -5249,6 +5249,12 @@ CompWindow::setWindowFrameExtents (CompWindowExtents *i)
}
}
+bool
+CompWindow::hasUnmapReference ()
+{
+ return (priv && priv->unmapRefCnt > 1);
+}
+
void
CompWindow::updateFrameRegion (CompRegion& region)
WRAPABLE_HND_FUNC (12, updateFrameRegion, region)