[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
This commit is contained in:
parent
99abfe4e28
commit
6f7bea3acd
1 changed files with 3 additions and 0 deletions
|
@ -761,6 +761,9 @@ bool ShellClient::isMaximizable() const
|
||||||
|
|
||||||
bool ShellClient::isMinimizable() const
|
bool ShellClient::isMinimizable() const
|
||||||
{
|
{
|
||||||
|
if (!rules()->checkMinimize(true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal);
|
return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue