From 0652a20bd31de9cd3de6abbbc5f645b0faa77f6d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 25 Apr 2024 16:57:11 +0100 Subject: [PATCH] events: set window initial* before searching for rules --- src/events/Windows.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 6455c530..44230e2a 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -68,6 +68,8 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW); PWINDOW->m_iX11Type = PWINDOW->m_bIsX11 ? (PWINDOW->m_uSurface.xwayland->override_redirect ? 2 : 1) : 1; PWINDOW->m_bFirstMap = true; + PWINDOW->m_szInitialTitle = PWINDOW->m_szTitle; + PWINDOW->m_szInitialClass = g_pXWaylandManager->getAppIDClass(PWINDOW); // check for token std::string requestedWorkspace = ""; @@ -151,9 +153,6 @@ void Events::listener_mapWindow(void* owner, void* data) { bool overridingNoFullscreen = false; bool overridingNoMaximize = false; - PWINDOW->m_szInitialTitle = g_pXWaylandManager->getTitle(PWINDOW); - PWINDOW->m_szInitialClass = g_pXWaylandManager->getAppIDClass(PWINDOW); - for (auto& r : WINDOWRULES) { if (r.szRule.starts_with("monitor")) { try {