Use placement strategy Maximizing when building without decos

icc-effect-5.14.5
Martin Gräßlin 2011-04-29 12:46:04 +02:00
parent cf1ab4e330
commit 4d463a4dc4
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "options.h"
#include "config-kwin.h"
#ifndef KCMRULES
@ -148,7 +149,11 @@ unsigned long Options::updateSettings()
xineramaMaximizeEnabled = config.readEntry("XineramaMaximizeEnabled", true);
xineramaFullscreenEnabled = config.readEntry("XineramaFullscreenEnabled", true);
#ifdef KWIN_BUILD_DECORATIONS
placement = Placement::policyFromString(config.readEntry("Placement"), true);
#else
placement = Placement::Maximizing;
#endif
xineramaPlacementScreen = qBound(-1, config.readEntry("XineramaPlacementScreen", -1),
Kephal::ScreenUtils::numScreens() - 1);