diff options
author | Erkin Bahceci <erkinbah@gmail.com> | 2009-07-08 10:08:16 -0500 |
---|---|---|
committer | Erkin Bahceci <erkinbah@gmail.com> | 2009-07-08 10:08:16 -0500 |
commit | 254f87a94af907df630e98535662b762bd4c9ae5 (patch) | |
tree | b0da3a1e280a4614c6c90c737a44e025af8c3e3f /src | |
parent | ffa7d89359818ebecf66aae9068f702e9ccf7139 (diff) | |
download | zcomp-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.cpp | 6 |
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) |