diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2024-10-21 10:09:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-21 16:09:14 +0100 |
| commit | 9df0f0b66c66706c9ce8cf9f80e834d5abfc1e96 (patch) | |
| tree | 887e8c559f80dc3e83d347a2194966b253912da1 /src/events/Windows.cpp | |
| parent | 4093b993a2c79ce576702641134d745ab97c6b2c (diff) | |
renderer: fix floating window damage (#8182)
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 21055f79..57a28948 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -687,6 +687,8 @@ void Events::listener_unmapWindow(void* owner, void* data) { g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW); + g_pHyprRenderer->damageWindow(PWINDOW); + // do this after onWindowRemoved because otherwise it'll think the window is invalid PWINDOW->m_bIsMapped = false; @@ -726,8 +728,6 @@ void Events::listener_unmapWindow(void* owner, void* data) { g_pCompositor->addToFadingOutSafe(PWINDOW); - g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID)); - if (!PWINDOW->m_bX11DoesntWantBorders) // don't animate out if they weren't animated in. PWINDOW->m_vRealPosition = PWINDOW->m_vRealPosition.value() + Vector2D(0.01f, 0.01f); // it has to be animated, otherwise onWindowPostCreateClose will ignore it |
