From c8553387bb0adfcaaabbfa1d2e45fbc9c515f7b0 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:03:43 +0100 Subject: [PATCH] fixed multiple highlighted windows when multimon switching workspaces --- src/KeybindManager.cpp | 2 -- src/windowManager.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/KeybindManager.cpp b/src/KeybindManager.cpp index bdc5224..97e321b 100644 --- a/src/KeybindManager.cpp +++ b/src/KeybindManager.cpp @@ -117,8 +117,6 @@ void KeybindManager::changeworkspace(std::string arg) { if (ID != -1) { Debug::log(LOG, "Changing the current workspace to " + std::to_string(ID)); - const auto PLASTWINDOW = g_pWindowManager->getWindowFromDrawable(g_pWindowManager->LastWindow); - g_pWindowManager->changeWorkspaceByID(ID); } } diff --git a/src/windowManager.cpp b/src/windowManager.cpp index 1058cd5..e031bc9 100644 --- a/src/windowManager.cpp +++ b/src/windowManager.cpp @@ -865,7 +865,6 @@ void CWindowManager::changeWorkspaceByID(int ID) { setAllWorkspaceWindowsDirtyByID(ID); activeWorkspaces[workspace.getMonitor()] = workspace.getID(); - LastWindow = -1; // set the focus to any window on that workspace for (auto& window : windows) {