summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
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));
+}