summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-02-01 02:07:41 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-02-01 02:07:41 +0100
commit5f76ea4aaa3f812215c52fff58557558cefebdc6 (patch)
tree8324c65ef7dc87c95e63bf2d223459da5dd1eac3 /kde
parent7e5ba8be4bc7e19bc1f47b96fdfbdfe58ad0a6e9 (diff)
Do not resize the decoration widget to the wrong dimensions first.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/window.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/kde/window-decorator-kde4/window.cpp b/kde/window-decorator-kde4/window.cpp
index 741dce87..086c40c1 100644
--- a/kde/window-decorator-kde4/window.cpp
+++ b/kde/window-decorator-kde4/window.cpp
@@ -144,12 +144,6 @@ KWD::Window::Window (WId parentId,
mGeometry = QRect (50, 50, 30, 1);
}
-
-
- setGeometry (QRect (mGeometry.x () + ROOT_OFF_X,
- mGeometry.y () + ROOT_OFF_Y,
- mGeometry.width (), mGeometry.height ()));
-
createDecoration ();
mActiveChild = NULL;
@@ -1238,6 +1232,10 @@ KWD::Window::resizeDecoration (bool force)
{
mPendingConfigure = 1;
}
+
+ setGeometry (QRect (mGeometry.x () + ROOT_OFF_X - mBorder.left,
+ mGeometry.y () + ROOT_OFF_Y - mBorder.top,
+ w, h));
XMoveResizeWindow (QX11Info::display(), winId(),
mGeometry.x () + ROOT_OFF_X - mBorder.left,
mGeometry.y () + ROOT_OFF_Y - mBorder.top,
@@ -1301,6 +1299,7 @@ KWD::Window::handleMap (void)
return FALSE;
mPendingMap = 0;
+
if (mPendingConfigure)
return FALSE;
@@ -1312,8 +1311,6 @@ KWD::Window::handleMap (void)
bool
KWD::Window::handleConfigure (QSize size)
{
- //fprintf(stderr,"conf %d / %d (%d/%d) -> (%d/%d) %s\n",mPendingConfigure,mPendingMap,
- // mSize.width(),mSize.height(),size.width(),size.height(),mName.toAscii().data());
if (!mPendingConfigure)
return FALSE;