diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-02 15:15:39 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-02 15:15:39 +0000 |
| commit | 5b548f5bc352a09bf9cf46a8eee0888abbcb2cec (patch) | |
| tree | 623559c7a4f1ec776b6ce1bf70fc7ef61df2bb58 /src/events/Windows.cpp | |
| parent | 5ac20053189bdd1e786602893d18bd28f26cde73 (diff) | |
update window values after map finish
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 5 |
1 files 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) { |
