From 9d09cf6dc9cb36ebf94663106a87141642599430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 27 Feb 2016 11:22:46 +0100 Subject: [PATCH] respect motif and rules on unmaximizing when restoring a borderless maximized, the window shall not suddenly be decorated BUG: 359797 FIXED-IN: 5.6 REVIEW: 127198 --- geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 1bffa9bf8a..2a07a20d35 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2256,7 +2256,7 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust) // triggers a maximize change. // The next setNoBorder interation will exit since there's no change but the first recursion pullutes the restore geometry changeMaximizeRecursion = true; - setNoBorder(app_noborder || max_mode == MaximizeFull); + setNoBorder(rules()->checkNoBorder(app_noborder || (m_motif.hasDecoration() && m_motif.noBorder()) || max_mode == MaximizeFull)); changeMaximizeRecursion = false; }