summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorFrançois Conzelmann <45296195+zephvr@users.noreply.github.com>2023-12-11 17:51:10 +0100
committerGitHub <noreply@github.com>2023-12-11 16:51:10 +0000
commite53134ca904e47a24191ea028c019ac9728b7dad (patch)
treef1c44c9d113402f426d6c43aaa077b7ce7e8809d /src/Window.cpp
parent8191e635a33ea634846f6458b42685da277f50b5 (diff)
internal: fix interactions with fakefullscreen (#4113)
- In a maximized window, unstuck fakefullscreen from on state - In a fakefullscreen window, going in and out of fullscreen state keep the fakefullscreen state rendered
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 58ec5c72..bd51f2ff 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -1000,3 +1000,8 @@ int CWindow::getRealBorderSize() {
bool CWindow::canBeTorn() {
return (m_sAdditionalConfigData.forceTearing.toUnderlying() || m_bTearingHint) && g_pHyprRenderer->m_bTearingEnvSatisfied;
}
+
+bool CWindow::shouldSendFullscreenState() {
+ const auto MODE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID)->m_efFullscreenMode;
+ return m_bFakeFullscreenState || (m_bIsFullscreen && (MODE == FULLSCREEN_FULL));
+}