Git commit 9d09cf6dc9cb36ebf94663106a87141642599430 by Thomas L=C3=BCbking. Committed on 29/02/2016 at 08:48. Pushed by luebking into branch 'master'. 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 M +1 -1 geometry.cpp http://commits.kde.org/kwin/9d09cf6dc9cb36ebf94663106a87141642599430 diff --git a/geometry.cpp b/geometry.cpp index 1bffa9b..2a07a20 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2256,7 +2256,7 @@ void Client::changeMaximize(bool vertical, bool horiz= ontal, bool adjust) // triggers a maximize change. // The next setNoBorder interation will exit since there's no chan= ge but the first recursion pullutes the restore geometry changeMaximizeRecursion =3D true; - setNoBorder(app_noborder || max_mode =3D=3D MaximizeFull); + setNoBorder(rules()->checkNoBorder(app_noborder || (m_motif.hasDec= oration() && m_motif.noBorder()) || max_mode =3D=3D MaximizeFull)); changeMaximizeRecursion =3D false; } =20