From 41883e052223e407791818e814ce565c62e1a9a9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 5 Sep 2022 11:44:43 +0200 Subject: [PATCH] fix wonky behavior with silent workspace rule --- src/events/Windows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 5f0110ed..66054ea2 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -320,6 +320,8 @@ void Events::listener_mapWindow(void* owner, void* data) { if (workspaceSilent) { // move the window + const auto OLDWORKSPACE = PWINDOW->m_iWorkspaceID; + if (g_pCompositor->m_pLastWindow == PWINDOW) { if (requestedWorkspace != "special") g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace); @@ -328,6 +330,8 @@ void Events::listener_mapWindow(void* owner, void* data) { } else { Debug::log(ERR, "Tried to set workspace silent rule to a nofocus window!"); } + + g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE); } if (requestsFullscreen) {