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