From 6f7bea3acdfe4ece7e92dc3638cc2f2bda07dd1f Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Tue, 9 Jul 2019 15:05:32 +0300 Subject: [PATCH] [wayland] Make clients with forced minimize state unminimizeable Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: fmonteiro, graesslin, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18496 --- shell_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell_client.cpp b/shell_client.cpp index d14985a85c..d3a7b0da3c 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -761,6 +761,9 @@ bool ShellClient::isMaximizable() const bool ShellClient::isMinimizable() const { + if (!rules()->checkMinimize(true)) { + return false; + } return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); }