Properly initialize ARGB mode in libtdescreensaver

This resolves an unreported bug whereby many screensavers do not appear when using a compositor
pull/16/head
Timothy Pearson 11 years ago
parent 142e058e79
commit c2692e04d1

@ -34,6 +34,8 @@
#include "tdescreensaver.h" #include "tdescreensaver.h"
#include "tdescreensaver_vroot.h" #include "tdescreensaver_vroot.h"
bool argb_visual = FALSE;
extern "C" extern "C"
{ {
extern const char *kss_applicationName; extern const char *kss_applicationName;
@ -98,7 +100,12 @@ KDE_EXPORT int main(int argc, char *argv[])
TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
#ifdef HAVE_XCOMPOSITE
TDEApplication app(TDEApplication::openX11RGBADisplay());
argb_visual = app.isX11CompositionAvailable();
#else
TDEApplication app; TDEApplication app;
#endif
TDECrash::setCrashHandler( crashHandler ); TDECrash::setCrashHandler( crashHandler );
TDEGlobal::locale()->insertCatalogue("klock"); TDEGlobal::locale()->insertCatalogue("klock");

Loading…
Cancel
Save