From cdeca4aac7dc121bc0eaa49a35ae792abdcff1fc Mon Sep 17 00:00:00 2001 From: Leon Schumacher Date: Tue, 28 Oct 2025 18:54:23 +0100 Subject: [PATCH] hyprfocus: fix fullscreen windows not restoring original state --- hyprfocus/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprfocus/main.cpp b/hyprfocus/main.cpp index 7183e16..d3bfc7a 100644 --- a/hyprfocus/main.cpp +++ b/hyprfocus/main.cpp @@ -77,7 +77,7 @@ static void onFocusChange(PHLWINDOW window) { w->m_realSize->setConfig(POUT); w->m_realPosition->setConfig(POUT); - if (w->m_isFloating) { + if (w->m_isFloating || w->isFullscreen()) { *w->m_realPosition = ORIGINAL.pos(); *w->m_realSize = ORIGINAL.size(); } else @@ -97,7 +97,7 @@ static void onFocusChange(PHLWINDOW window) { return; w->m_realPosition->setConfig(POUT); - if (w->m_isFloating) + if (w->m_isFloating || w->isFullscreen()) *w->m_realPosition = ORIGINAL; else g_pLayoutManager->getCurrentLayout()->recalculateWindow(w.lock());