Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix floating window damage #8182

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/events/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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

Expand Down
Loading