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
This commit is contained in:
parent
01c6e900f2
commit
de4206660d
2 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,6 @@ Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
|
|||
|
||||
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");
|
||||
|
|
|
@ -37,6 +37,7 @@ protected:
|
|||
Client* (*old_create_ptr)(Workspace *ws, WId w, int tool);
|
||||
KLibrary *library;
|
||||
QString pluginStr;
|
||||
QCString defaultPlugin;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue