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