Properly initialize ARGB mode in libtdescreensaver

This resolves an unreported bug whereby many screensavers do not appear when using a compositor
(cherry picked from commit c2692e04d1)
v3.5.13-sru
Timothy Pearson 11 years ago committed by Slávek Banko
parent 24210cacbe
commit 02fb067980

@ -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");

Loading…
Cancel
Save