summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornyx <nnyyxxxx@protonmail.com>2025-03-11 13:32:01 -0400
committerGitHub <noreply@github.com>2025-03-11 18:32:01 +0100
commit4b25fbe5fda3bf7f0e561f400fb8f300b002eab3 (patch)
treec463fe2547405f8795457b680a224c9aefe3f364
parent81e93acba4a4da6060192bc18147bf18dbd4ac8d (diff)
windows: respect noinitialfocus with workspace changes (#9586)
If a window is specifically placed on another workspace then we should not "focus" that workspace even if the window itself never gets focused when noinitialfocus is enabled for the window.
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 86e13d8e..b5273187 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -349,7 +349,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (!workspaceSilent) {
if (pWorkspace->m_bIsSpecialWorkspace)
pWorkspace->m_pMonitor->setSpecialWorkspace(pWorkspace);
- else if (PMONITOR->activeWorkspaceID() != REQUESTEDWORKSPACEID)
+ else if (PMONITOR->activeWorkspaceID() != REQUESTEDWORKSPACEID && !PWINDOW->m_bNoInitialFocus)
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspaceName);
PMONITOR = g_pCompositor->m_pLastMonitor.lock();