From 624303bfb934761518d601053bfb54cf0a73e0bd Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 13 Oct 2022 15:19:30 +0100 Subject: [PATCH] check for same workspace in workspace rule --- src/events/Windows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 9ceae914..e38d8d1d 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -147,6 +147,9 @@ void Events::listener_mapWindow(void* owner, void* data) { requestedWorkspace = WORKSPACERQ; } + if (requestedWorkspace == PWORKSPACE->m_szName || requestedWorkspace == "name:" + PWORKSPACE->m_szName) + requestedWorkspace = ""; + Debug::log(LOG, "Rule workspace matched by window %x, %s applied.", PWINDOW, r.szValue.c_str()); } else if (r.szRule.find("float") == 0) { PWINDOW->m_bIsFloating = true;