summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-02 18:37:06 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-09-02 18:37:06 +0200
commitb31b675fbf3db99ca3d481259732645ce07944d7 (patch)
tree48577f2b0a9c499fa4db75932bbd7efab70f8af6 /kde
parentc39abcaf936837df54e5dd88191ae6c6b339bc82 (diff)
downloadzcomp-b31b675fbf3db99ca3d481259732645ce07944d7.tar.gz
zcomp-b31b675fbf3db99ca3d481259732645ce07944d7.tar.bz2
Use a timer to create decoration.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/window.cpp6
-rw-r--r--kde/window-decorator-kde4/window.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/kde/window-decorator-kde4/window.cpp b/kde/window-decorator-kde4/window.cpp
index f2cfcf0..9e29c6b 100644
--- a/kde/window-decorator-kde4/window.cpp
+++ b/kde/window-decorator-kde4/window.cpp
@@ -155,7 +155,7 @@ KWD::Window::Window (WId parentId,
mGeometry = QRect (50, 50, 30, 1);
}
- createDecoration ();
+ QTimer::singleShot (0, this, SLOT (createDecoration ()));
mActiveChild = NULL;
}
@@ -784,11 +784,7 @@ KWD::Window::createDecoration (void)
StructureNotifyMask | PropertyChangeMask);
KWD::popXError ();
- XSync (QX11Info::display(), FALSE);
- XSynchronize (QX11Info::display(), TRUE);
resizeDecoration (true);
- XSynchronize (QX11Info::display(), FALSE);
-
}
static void
diff --git a/kde/window-decorator-kde4/window.h b/kde/window-decorator-kde4/window.h
index a41aaa5..a59bcbf 100644
--- a/kde/window-decorator-kde4/window.h
+++ b/kde/window-decorator-kde4/window.h
@@ -186,7 +186,6 @@ class Window:public QWidget, public KDecorationBridge {
private:
- void createDecoration (void);
bool resizeDecoration (bool force = false);
void updateBlurProperty (int topOffset,
int bottomOffset,
@@ -202,6 +201,7 @@ class Window:public QWidget, public KDecorationBridge {
private slots:
+ void createDecoration (void);
void updateShadow (void);
void handlePopupActivated (QAction *action);
void handleOpacityPopupActivated (QAction *action);