fixed multiple highlighted windows when multimon switching workspaces

This commit is contained in:
vaxerski 2021-11-24 19:03:43 +01:00
parent 2645bbdc05
commit c8553387bb
2 changed files with 0 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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) {