From 4d463a4dc42976c09acbb83598a030a6294d64d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 29 Apr 2011 12:46:04 +0200 Subject: [PATCH] Use placement strategy Maximizing when building without decos --- options.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/options.cpp b/options.cpp index e116a60ae2..7846c6c5ca 100644 --- a/options.cpp +++ b/options.cpp @@ -20,6 +20,7 @@ along with this program. If not, see . *********************************************************************/ #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);