check for requested opengl graphicssystem rather than raster twice ;-)

This commit is contained in:
Thomas Lübking 2012-03-29 16:23:06 +02:00
parent 2fb8fb1c21
commit 06ab909eb2

View file

@ -1015,7 +1015,7 @@ void Workspace::slotReinitCompositing()
KGlobal::config()->reparseConfiguration();
const QString graphicsSystem = KConfigGroup(KSharedConfig::openConfig("kwinrc"), "Compositing").readEntry("GraphicsSystem", "");
if ((Extensions::nonNativePixmaps() && graphicsSystem == "native") ||
(!Extensions::nonNativePixmaps() && (graphicsSystem == "raster" || graphicsSystem == "raster")) ) {
(!Extensions::nonNativePixmaps() && (graphicsSystem == "raster" || graphicsSystem == "opengl")) ) {
restartKWin("explicitly reconfigured graphicsSystem change");
return;
}