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, 9 insertions, 6 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 405269e..aaa5d9f 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -155,6 +155,9 @@ Aquamarine::Window::~Window (void)
if (mPicture)
XRenderFreePicture (qt_xdisplay (), mPicture);
+ if (mPixmap)
+ XFreePixmap (qt_xdisplay (), mPixmap);
+
if (mTexturePicture)
XRenderFreePicture (qt_xdisplay (), mTexturePicture);
@@ -1202,18 +1205,18 @@ Aquamarine::Window::resizeDecoration (bool force)
w = mGeometry.width () + mBorder.left + mBorder.right;
h = mGeometry.height () + mBorder.top + mBorder.bottom;
- if (mPixmap)
- {
- XFreePixmap (qt_xdisplay (), mPixmap);
- mPixmap = None;
- }
-
if (mPicture)
{
XRenderFreePicture (qt_xdisplay (), mPicture);
mPicture = 0;
}
+ if (mPixmap)
+ {
+ XFreePixmap (qt_xdisplay (), mPixmap);
+ mPixmap = None;
+ }
+
setGeometry (QRect (mGeometry.x () + ROOT_OFF_X - mBorder.left,
mGeometry.y () + ROOT_OFF_Y - mBorder.top,
w, h));