From 5b548f5bc352a09bf9cf46a8eee0888abbcb2cec Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 2 Nov 2022 15:15:39 +0000 Subject: [PATCH] update window values after map finish --- src/events/Windows.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 034a1005..435cffbe 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -65,8 +65,6 @@ void Events::listener_mapWindow(void* owner, void* data) { if (PWINDOW->m_iX11Type == 2) g_pCompositor->moveUnmanagedX11ToWindows(PWINDOW); - g_pCompositor->updateWindowAnimatedDecorationValues(PWINDOW); - // Set all windows tiled regardless of anything g_pXWaylandManager->setWindowStyleTiled(PWINDOW, WLR_EDGE_LEFT | WLR_EDGE_RIGHT | WLR_EDGE_TOP | WLR_EDGE_BOTTOM); @@ -538,6 +536,9 @@ void Events::listener_mapWindow(void* owner, void* data) { auto workspaceID = requestedWorkspace != "" ? requestedWorkspace : PWORKSPACE->m_szName; g_pEventManager->postEvent(SHyprIPCEvent{"openwindow", getFormat("%x,%s,%s,%s", PWINDOW, workspaceID.c_str(), g_pXWaylandManager->getAppIDClass(PWINDOW).c_str(), PWINDOW->m_szTitle.c_str())}); + + // recalc the values for this window + g_pCompositor->updateWindowAnimatedDecorationValues(PWINDOW); } void Events::listener_unmapWindow(void* owner, void* data) {