prevent missed surface size updates on fullscreen window close
Some checks failed
Build Hyprland / Build Hyprland (Arch) (push) Has been cancelled
Build Hyprland / Build Hyprland with Meson (Arch) (push) Has been cancelled
Build Hyprland (Nix) / Build Hyprland (Nix) (push) Has been cancelled
Build Hyprland (Nix) / Build Hyprland (Nix)-1 (push) Has been cancelled
Nix: update lockfile / update (push) Has been cancelled

This commit is contained in:
vaxerski 2022-09-08 23:02:29 +02:00
parent bacfae3084
commit 928158bbfb

View file

@ -402,6 +402,7 @@ void Events::listener_unmapWindow(void* owner, void* data) {
if (PWINDOW->m_bIsFullscreen) {
g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, FULLSCREEN_FULL, false);
g_pXWaylandManager->setWindowFullscreen(PWINDOW, PWINDOW->m_bIsFullscreen);
g_pCompositor->forceReportSizesToWindowsOnWorkspace(PWINDOW->m_iWorkspaceID);
}
// Allow the renderer to catch the last frame.