summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 92b948f..eb5243f 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1416,8 +1416,19 @@ CompWindow::resize (CompWindow::Geometry gm)
priv->attrib.width, priv->attrib.height,
priv->attrib.border_width);
- priv->width = pw;
- priv->height = ph;
+ if (!priv->mapNum && priv->unmapRefCnt > 0 &&
+ priv->attrib.map_state == IsViewable)
+ {
+ /* keep old pixmap for windows that are unmapped on the client side,
+ * but not yet on our side as it's pretty likely that plugins are
+ * currently using it for animations
+ */
+ }
+ else
+ {
+ priv->width = pw;
+ priv->height = ph;
+ }
if (priv->mapNum)
priv->updateRegion ();