mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-21 10:48:24 +00:00
make ext_workspace_unstable impl more atomic (#2023)
This commit is contained in:
@@ -960,6 +960,9 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||||||
if (ANOTHERMONITOR)
|
if (ANOTHERMONITOR)
|
||||||
g_pCompositor->warpCursorTo(PMONITOR->vecPosition + PMONITOR->vecSize / 2.f);
|
g_pCompositor->warpCursorTo(PMONITOR->vecPosition + PMONITOR->vecSize / 2.f);
|
||||||
|
|
||||||
|
// Destroy old workspace if it is empty
|
||||||
|
g_pCompositor->sanityCheckWorkspaces();
|
||||||
|
|
||||||
Debug::log(LOG, "Changed to workspace %i", workspaceToChangeTo);
|
Debug::log(LOG, "Changed to workspace %i", workspaceToChangeTo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user