summaryrefslogtreecommitdiffstats
path: root/libkscreensaver
diff options
context:
space:
mode:
Diffstat (limited to 'libkscreensaver')
-rw-r--r--libkscreensaver/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libkscreensaver/main.cpp b/libkscreensaver/main.cpp
index e80dd6bff..466182361 100644
--- a/libkscreensaver/main.cpp
+++ b/libkscreensaver/main.cpp
@@ -34,6 +34,8 @@
#include "kscreensaver.h"
#include "kscreensaver_vroot.h"
+bool argb_visual = FALSE;
+
extern "C"
{
extern const char *kss_applicationName;
@@ -98,7 +100,12 @@ KDE_EXPORT int main(int argc, char *argv[])
KCmdLineArgs::addCmdLineOptions(options);
+#ifdef HAVE_XCOMPOSITE
+ KApplication app(KApplication::openX11RGBADisplay());
+ argb_visual = app.isX11CompositionAvailable();
+#else
KApplication app;
+#endif
KCrash::setCrashHandler( crashHandler );
KGlobal::locale()->insertCatalogue("klock");