summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 32dc8b1..ebd5a75 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1345,7 +1345,7 @@ CompWindow::unmap ()
if (priv->unmapRefCnt > 0)
return;
- if (priv->managed && !priv->placed)
+ if (priv->unmanaging)
{
XWindowChanges xwc;
unsigned int xwcm;
@@ -1364,7 +1364,7 @@ CompWindow::unmap ()
if (xwcm)
configureXWindow (xwcm, &xwc);
- priv->managed = false;
+ priv->unmanaging = false;
}
if (priv->struts)