Use placement strategy Maximizing when building without decos
This commit is contained in:
parent
cf1ab4e330
commit
4d463a4dc4
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
#include "config-kwin.h"
|
||||||
|
|
||||||
#ifndef KCMRULES
|
#ifndef KCMRULES
|
||||||
|
|
||||||
|
@ -148,7 +149,11 @@ unsigned long Options::updateSettings()
|
||||||
xineramaMaximizeEnabled = config.readEntry("XineramaMaximizeEnabled", true);
|
xineramaMaximizeEnabled = config.readEntry("XineramaMaximizeEnabled", true);
|
||||||
xineramaFullscreenEnabled = config.readEntry("XineramaFullscreenEnabled", true);
|
xineramaFullscreenEnabled = config.readEntry("XineramaFullscreenEnabled", true);
|
||||||
|
|
||||||
|
#ifdef KWIN_BUILD_DECORATIONS
|
||||||
placement = Placement::policyFromString(config.readEntry("Placement"), true);
|
placement = Placement::policyFromString(config.readEntry("Placement"), true);
|
||||||
|
#else
|
||||||
|
placement = Placement::Maximizing;
|
||||||
|
#endif
|
||||||
xineramaPlacementScreen = qBound(-1, config.readEntry("XineramaPlacementScreen", -1),
|
xineramaPlacementScreen = qBound(-1, config.readEntry("XineramaPlacementScreen", -1),
|
||||||
Kephal::ScreenUtils::numScreens() - 1);
|
Kephal::ScreenUtils::numScreens() - 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue