[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
icc-effect-5.17.5
Vlad Zagorodniy 2019-07-09 15:05:32 +03:00
parent 99abfe4e28
commit 6f7bea3acd
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}