From de4206660d11e7d877cfc278a57e653f528d6516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 28 Oct 2002 22:54:25 +0000 Subject: [PATCH] Fixed the display depth test so we get the right default style on 24/32 bpp. Apparently QPixmap::defaultDepth() was called before the screen info had been initialized in Qt. svn path=/trunk/kdebase/kwin/; revision=186283 --- plugins.cpp | 5 ++--- plugins.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins.cpp b/plugins.cpp index 6da545963a..1f8c8a6edd 100644 --- a/plugins.cpp +++ b/plugins.cpp @@ -22,9 +22,6 @@ Copyright (C) 1999, 2000 Daniel M. Duley using namespace KWinInternal; -const char* defaultPlugin = (QPixmap::defaultDepth() > 8) ? - "kwin_keramik" : "kwin_quartz"; - PluginMgr::PluginMgr() : QObject() @@ -33,6 +30,8 @@ PluginMgr::PluginMgr() old_create_ptr = NULL; library = 0; pluginStr = "kwin_undefined"; + defaultPlugin = (QPixmap::defaultDepth() > 8) ? + "kwin_keramik" : "kwin_quartz"; KConfig *config = KGlobal::config(); config->setGroup("Style"); diff --git a/plugins.h b/plugins.h index 67e6c44841..54d43860b8 100644 --- a/plugins.h +++ b/plugins.h @@ -37,6 +37,7 @@ protected: Client* (*old_create_ptr)(Workspace *ws, WId w, int tool); KLibrary *library; QString pluginStr; + QCString defaultPlugin; }; };