Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 923 Lines • ▼ Show 20 Line(s) | 921 | if (m_serverDecoration) { | |||
---|---|---|---|---|---|
924 | } | 924 | } | ||
925 | } | 925 | } | ||
926 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | 926 | if (m_xdgDecoration && m_xdgDecoration->requestedMode() != XdgDecorationInterface::Mode::ClientSide) { | ||
927 | return m_userNoBorder || isFullScreen(); | 927 | return m_userNoBorder || isFullScreen(); | ||
928 | } | 928 | } | ||
929 | return true; | 929 | return true; | ||
930 | } | 930 | } | ||
931 | 931 | | |||
932 | bool ShellClient::isFullScreenable() const | ||||
933 | { | ||||
934 | if (!rules()->checkFullScreen(true)) { | ||||
935 | return false; | ||||
936 | } | ||||
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. | |||||
937 | return !isSpecialWindow(); | ||||
938 | } | ||||
939 | | ||||
932 | void ShellClient::setFullScreen(bool set, bool user) | 940 | void ShellClient::setFullScreen(bool set, bool user) | ||
933 | { | 941 | { | ||
934 | if (!isFullScreen() && !set) | 942 | if (!isFullScreen() && !set) | ||
935 | return; | 943 | return; | ||
936 | if (user && !userCanSetFullScreen()) | 944 | if (user && !userCanSetFullScreen()) | ||
937 | return; | 945 | return; | ||
938 | set = rules()->checkFullScreen(set && !isSpecialWindow()); | 946 | set = rules()->checkFullScreen(set && !isSpecialWindow()); | ||
939 | setShade(ShadeNone); | 947 | setShade(ShadeNone); | ||
▲ Show 20 Lines • Show All 990 Lines • Show Last 20 Lines |
Should popups be fullscreen-able?