|
|
@ -34,6 +34,8 @@
|
|
|
|
#include "kscreensaver.h"
|
|
|
|
#include "kscreensaver.h"
|
|
|
|
#include "kscreensaver_vroot.h"
|
|
|
|
#include "kscreensaver_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[])
|
|
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs::addCmdLineOptions(options);
|
|
|
|
KCmdLineArgs::addCmdLineOptions(options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_XCOMPOSITE
|
|
|
|
|
|
|
|
KApplication app(KApplication::openX11RGBADisplay());
|
|
|
|
|
|
|
|
argb_visual = app.isX11CompositionAvailable();
|
|
|
|
|
|
|
|
#else
|
|
|
|
KApplication app;
|
|
|
|
KApplication app;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
KCrash::setCrashHandler( crashHandler );
|
|
|
|
KCrash::setCrashHandler( crashHandler );
|
|
|
|
KGlobal::locale()->insertCatalogue("klock");
|
|
|
|
KGlobal::locale()->insertCatalogue("klock");
|
|
|
|