From c2692e04d18f85d7214bbc19231b7c3cf488d3fe Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Apr 2014 16:02:24 -0500 Subject: [PATCH] Properly initialize ARGB mode in libtdescreensaver This resolves an unreported bug whereby many screensavers do not appear when using a compositor --- libtdescreensaver/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libtdescreensaver/main.cpp b/libtdescreensaver/main.cpp index 073d7845d..2260f25fd 100644 --- a/libtdescreensaver/main.cpp +++ b/libtdescreensaver/main.cpp @@ -34,6 +34,8 @@ #include "tdescreensaver.h" #include "tdescreensaver_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[]) TDECmdLineArgs::addCmdLineOptions(options); +#ifdef HAVE_XCOMPOSITE + TDEApplication app(TDEApplication::openX11RGBADisplay()); + argb_visual = app.isX11CompositionAvailable(); +#else TDEApplication app; +#endif TDECrash::setCrashHandler( crashHandler ); TDEGlobal::locale()->insertCatalogue("klock");