summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-24 20:23:47 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-09-24 20:23:47 +0200
commitee3270073cbcc771581bb802c0331e2c5cd52878 (patch)
tree8c3c8c4bdd5b03965eaa7b0de8c4094ac7e94ad5 /kde
parentd91c2bee3428f32720ddd7c212b573dec88fb381 (diff)
downloadzcomp-ee3270073cbcc771581bb802c0331e2c5cd52878.tar.gz
zcomp-ee3270073cbcc771581bb802c0331e2c5cd52878.tar.bz2
Relayout during maximize.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/window.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/kde/window-decorator-kde4/window.cpp b/kde/window-decorator-kde4/window.cpp
index f703bad..3d2a17f 100644
--- a/kde/window-decorator-kde4/window.cpp
+++ b/kde/window-decorator-kde4/window.cpp
@@ -1466,7 +1466,7 @@ void
KWD::Window::updateProperty (void)
{
Atom atom = Atoms::netWindowDecor;
- decor_extents_t maxExtents;
+ decor_extents_t maxExtents, normExtents;
long data[256];
decor_quad_t quads[N_QUADS_MAX];
int nQuad = 0;
@@ -1485,8 +1485,10 @@ KWD::Window::updateProperty (void)
mDecor->borders (maxExtents.left, maxExtents.right,
maxExtents.top, maxExtents.bottom);
mState = 0;
- mDecor->borders (mBorder.left, mBorder.right, mBorder.top, mBorder.bottom);
+ mDecor->borders (normExtents.left, normExtents.right,
+ normExtents.top, normExtents.bottom);
mState = saveState;
+ mDecor->borders (mBorder.left, mBorder.right, mBorder.top, mBorder.bottom);
if (mType != Normal2D)
{
@@ -1551,13 +1553,13 @@ KWD::Window::updateProperty (void)
}
decor_quads_to_property (data, mTexturePixmap.handle (),
- &mBorder, &maxExtents,
+ &normExtents, &maxExtents,
minWidth, 0,
quads, nQuad);
}
else
{
- decor_gen_window_property (data, &mBorder, &maxExtents, 1, 0);
+ decor_gen_window_property (data, &normExtents, &maxExtents, 1, 0);
}