From e53134ca904e47a24191ea028c019ac9728b7dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Conzelmann?= <45296195+zephvr@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:51:10 +0100 Subject: 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 --- src/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Window.cpp') 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)); +} -- cgit v1.2.3