Switch over to Keramik deco, (or Quartz for 8bpp visuals)
svn path=/trunk/kdebase/kwin/; revision=185724
This commit is contained in:
parent
066f972ff3
commit
25e04fe680
2 changed files with 10 additions and 3 deletions
|
@ -253,7 +253,12 @@ QString KWinDecorationModule::decorationLibName( const QString& name )
|
|||
}
|
||||
|
||||
if (libName.isEmpty())
|
||||
libName = "kwin_default";
|
||||
{
|
||||
if (QPixmap::defaultDepth() > 8)
|
||||
libName = "kwin_keramik";
|
||||
else
|
||||
libName = "kwin_quartz";
|
||||
}
|
||||
|
||||
return libName;
|
||||
}
|
||||
|
@ -328,7 +333,8 @@ void KWinDecorationModule::readConfig( KConfig* conf )
|
|||
// the current plugin library name
|
||||
|
||||
oldLibraryName = currentLibraryName;
|
||||
currentLibraryName = conf->readEntry("PluginLib", "kwin_default");
|
||||
currentLibraryName = conf->readEntry("PluginLib",
|
||||
((QPixmap::defaultDepth() > 8) ? "kwin_keramik" : "kwin_quartz"));
|
||||
QString decoName = decorationName( currentLibraryName );
|
||||
|
||||
// If we are using the "default" kde client, use the "default" entry.
|
||||
|
|
|
@ -22,7 +22,8 @@ Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
|
|||
|
||||
using namespace KWinInternal;
|
||||
|
||||
const char* defaultPlugin = "kwin_default";
|
||||
const char* defaultPlugin = (QPixmap::defaultDepth() > 8) ?
|
||||
"kwin_keramik" : "kwin_quartz";
|
||||
|
||||
|
||||
PluginMgr::PluginMgr()
|
||||
|
|
Loading…
Reference in a new issue