summaryrefslogtreecommitdiffstats
path: root/libkscreensaver
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 19:29:25 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 19:29:25 -0500
commit2771be621097ef41405e184507fcf10b8b091ae0 (patch)
tree892b850506591d371e7cae0d23467b60eadd3cea /libkscreensaver
parent08bbf7c85be860a04e0be588d9ae4d635faf4c28 (diff)
downloadtdelibs-2771be621097ef41405e184507fcf10b8b091ae0.tar.gz
tdelibs-2771be621097ef41405e184507fcf10b8b091ae0.zip
Fix KRootBacking failure when no window is displayed
This partially resolves Bug 811
Diffstat (limited to 'libkscreensaver')
-rw-r--r--libkscreensaver/kscreensaver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libkscreensaver/kscreensaver.cpp b/libkscreensaver/kscreensaver.cpp
index 2b45c9a0f..4c7b343cb 100644
--- a/libkscreensaver/kscreensaver.cpp
+++ b/libkscreensaver/kscreensaver.cpp
@@ -47,6 +47,8 @@ KScreenSaver::KScreenSaver( WId id ) : TQWidget()
unsigned int w = 0;
unsigned int h = 0;
+ XSync(tqt_xdisplay(), false);
+
d = new KScreenSaverPrivate;
d->owner = TQT_TQWIDGET(find( id ));
if ( d->owner )