mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 12:25:59 +01:00
make ext_workspace_unstable impl more atomic (#2023)
This commit is contained in:
parent
16a034a34a
commit
c2f29be9ba
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue