From 1fc1fc9d3babbe3e21b77d6176529103672274a2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:34:37 +0200 Subject: [PATCH] fix focus on close fullscreen --- src/events/Windows.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 15f7a5ce..1a9da706 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -292,6 +292,11 @@ void Events::listener_unmapWindow(void* owner, void* data) { PWINDOW->hyprListener_setTitleWindow.removeCallback(); } + if (PWINDOW->m_bIsFullscreen) { + g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, FULLSCREEN_FULL, false); + g_pXWaylandManager->setWindowFullscreen(PWINDOW, PWINDOW->m_bIsFullscreen); + } + // Allow the renderer to catch the last frame. g_pHyprOpenGL->makeWindowSnapshot(PWINDOW);