Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 1022 Lines • ▼ Show 20 Line(s) | 1022 | if (m_shellSurface && m_maximizeMode == MaximizeMode::MaximizeFull) { | |||
---|---|---|---|---|---|
1023 | m_geomFsRestore = m_geomMaximizeRestore; | 1023 | m_geomFsRestore = m_geomMaximizeRestore; | ||
1024 | } else { | 1024 | } else { | ||
1025 | m_geomFsRestore = geometry(); | 1025 | m_geomFsRestore = geometry(); | ||
1026 | } | 1026 | } | ||
1027 | } | 1027 | } | ||
1028 | m_fullScreen = set; | 1028 | m_fullScreen = set; | ||
1029 | 1029 | | |||
1030 | if (set) { | 1030 | if (set) { | ||
1031 | untab(); | | |||
1032 | workspace()->raiseClient(this); | 1031 | workspace()->raiseClient(this); | ||
1033 | } | 1032 | } | ||
1034 | RequestGeometryBlocker requestBlocker(this); | 1033 | RequestGeometryBlocker requestBlocker(this); | ||
1035 | StackingUpdatesBlocker blocker1(workspace()); | 1034 | StackingUpdatesBlocker blocker1(workspace()); | ||
1036 | GeometryUpdatesBlocker blocker2(this); | 1035 | GeometryUpdatesBlocker blocker2(this); | ||
1037 | 1036 | | |||
1038 | workspace()->updateClientLayer(this); // active fullscreens get different layer | 1037 | workspace()->updateClientLayer(this); // active fullscreens get different layer | ||
1039 | updateDecoration(false, false); | 1038 | updateDecoration(false, false); | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 1104 | if (m_xdgShellSurface) { | |||
1106 | return true; | 1105 | return true; | ||
1107 | } | 1106 | } | ||
1108 | return false; | 1107 | return false; | ||
1109 | } | 1108 | } | ||
1110 | 1109 | | |||
1111 | bool ShellClient::userCanSetNoBorder() const | 1110 | bool ShellClient::userCanSetNoBorder() const | ||
1112 | { | 1111 | { | ||
1113 | if (m_serverDecoration && m_serverDecoration->mode() == ServerSideDecorationManagerInterface::Mode::Server) { | 1112 | if (m_serverDecoration && m_serverDecoration->mode() == ServerSideDecorationManagerInterface::Mode::Server) { | ||
1114 | return !isFullScreen() && !isShade() && !tabGroup(); | 1113 | return !isFullScreen() && !isShade(); | ||
1115 | } | 1114 | } | ||
1116 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | 1115 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | ||
1117 | return !isFullScreen() && !isShade() && !tabGroup(); | 1116 | return !isFullScreen() && !isShade(); | ||
1118 | } | 1117 | } | ||
1119 | return false; | 1118 | return false; | ||
1120 | } | 1119 | } | ||
1121 | 1120 | | |||
1122 | bool ShellClient::wantsInput() const | 1121 | bool ShellClient::wantsInput() const | ||
1123 | { | 1122 | { | ||
1124 | return rules()->checkAcceptFocus(acceptsFocus()); | 1123 | return rules()->checkAcceptFocus(acceptsFocus()); | ||
1125 | } | 1124 | } | ||
▲ Show 20 Lines • Show All 889 Lines • Show Last 20 Lines |