Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 925 Lines • ▼ Show 20 Line(s) | 923 | if (m_serverDecoration) { | |||
---|---|---|---|---|---|
926 | } | 926 | } | ||
927 | } | 927 | } | ||
928 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | 928 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | ||
929 | return m_userNoBorder || isFullScreen(); | 929 | return m_userNoBorder || isFullScreen(); | ||
930 | } | 930 | } | ||
931 | return true; | 931 | return true; | ||
932 | } | 932 | } | ||
933 | 933 | | |||
934 | bool ShellClient::isFullScreenable() const | ||||
935 | { | ||||
936 | if (!rules()->checkFullScreen(true)) { | ||||
937 | return false; | ||||
938 | } | ||||
zzag: Should popups be fullscreen-able? | |||||
romangg: Wouldn't say so. | |||||
zzag: Then we probably have to check isPopupWindow. | |||||
Though it should probably go in D18132. zzag: Though it should probably go in D18132. | |||||
939 | return !isSpecialWindow(); | ||||
940 | } | ||||
941 | | ||||
934 | void ShellClient::setFullScreen(bool set, bool user) | 942 | void ShellClient::setFullScreen(bool set, bool user) | ||
935 | { | 943 | { | ||
936 | if (!isFullScreen() && !set) | 944 | if (!isFullScreen() && !set) | ||
937 | return; | 945 | return; | ||
938 | if (user && !userCanSetFullScreen()) | 946 | if (user && !userCanSetFullScreen()) | ||
939 | return; | 947 | return; | ||
940 | set = rules()->checkFullScreen(set && !isSpecialWindow()); | 948 | set = rules()->checkFullScreen(set && !isSpecialWindow()); | ||
941 | setShade(ShadeNone); | 949 | setShade(ShadeNone); | ||
▲ Show 20 Lines • Show All 990 Lines • Show Last 20 Lines |
Should popups be fullscreen-able?