diff options
author | Vaxry <[email protected]> | 2024-04-23 11:37:12 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-23 11:37:20 +0100 |
commit | 4f1214c7e94687a881fece928d1346cf0951b8ee (patch) | |
tree | 83c4c85d45958c6a805d84f4e330247785457f5d | |
parent | aab1df50abbf2cd3da7837e7b457b943907a0b3e (diff) | |
download | Hyprland-4f1214c7e94687a881fece928d1346cf0951b8ee.tar.gz Hyprland-4f1214c7e94687a881fece928d1346cf0951b8ee.zip |
windows: don't force workspace change on same tracked workspace
-rw-r--r-- | src/events/Windows.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index cb67af2f..b02d63a7 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -85,8 +85,10 @@ void Events::listener_mapWindow(void* owner, void* data) { Debug::log(LOG, "HL_INITIAL_WORKSPACE_TOKEN {} -> {}", SZTOKEN, WS); - requestedWorkspace = WS; - workspaceSilent = true; + if (g_pCompositor->getWorkspaceByString(WS) != PWINDOW->m_pWorkspace) { + requestedWorkspace = WS; + workspaceSilent = true; + } } } } |