summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-08-13 10:53:12 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-08-13 10:53:12 +0800
commite37b87173812da4af24c480a1adc9f8075a05e98 (patch)
tree5cb30855728fc3113c4381890aa814174de73e6d /src/window.cpp
parent3963cc0cb67c58bdbc4ca75897e7557ceb4ff7f1 (diff)
downloadunity-window-decorator-e37b87173812da4af24c480a1adc9f8075a05e98.tar.gz
unity-window-decorator-e37b87173812da4af24c480a1adc9f8075a05e98.tar.bz2
Revert "Keep pixmaps of unmapped windows around if they are used for animations."
This reverts commit 6c7d254d7f7b3706e9a6294a1c16c7cc9a05568f.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 031f290..de58f96 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1444,19 +1444,8 @@ CompWindow::resize (CompWindow::Geometry gm)
priv->attrib.width, priv->attrib.height,
priv->attrib.border_width);
- 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;
- }
+ priv->width = pw;
+ priv->height = ph;
if (priv->mapNum)
priv->updateRegion ();