Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 723 Lines • ▼ Show 20 Line(s) | |||||
724 | 724 | | |||
725 | bool ShellClient::isMaximizable() const | 725 | bool ShellClient::isMaximizable() const | ||
726 | { | 726 | { | ||
727 | return true; | 727 | return true; | ||
728 | } | 728 | } | ||
729 | 729 | | |||
730 | bool ShellClient::isMinimizable() const | 730 | bool ShellClient::isMinimizable() const | ||
731 | { | 731 | { | ||
732 | if (!rules()->checkMinimize(true)) { | ||||
733 | return false; | ||||
734 | } | ||||
732 | return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); | 735 | return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); | ||
733 | } | 736 | } | ||
734 | 737 | | |||
735 | bool ShellClient::isMovable() const | 738 | bool ShellClient::isMovable() const | ||
736 | { | 739 | { | ||
737 | if (m_plasmaShellSurface) { | 740 | if (m_plasmaShellSurface) { | ||
738 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | 741 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | ||
739 | } | 742 | } | ||
▲ Show 20 Lines • Show All 1148 Lines • Show Last 20 Lines |