summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-27 22:34:37 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-27 22:34:37 +0200
commit1fc1fc9d3babbe3e21b77d6176529103672274a2 (patch)
tree752be2b72e963e3b90a662e13ae56603d6969eae /src/events/Windows.cpp
parent73d0259210bd70889f8e169455110177efdd0da3 (diff)
fix focus on close fullscreen
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp5
1 files changed, 5 insertions, 0 deletions
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);