make most windows minimizable

allow to minimize some kind of windows, all those that don't
have a plasmashell surface and those that have and have Normal
as role (to be sure to not minimize panel, desktop, etc)

REVIEW:125842
This commit is contained in:
Marco Martin 2015-10-29 10:31:23 +01:00
parent 7cc566681d
commit 8fe8bf59a5

View file

@ -350,7 +350,7 @@ bool ShellClient::isMaximizable() const
bool ShellClient::isMinimizable() const
{
return false;
return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal);
}
bool ShellClient::isMovable() const