mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-22 02:35:57 +01:00
expo: avoid showing old ws anim on close
This commit is contained in:
parent
b93f6953ba
commit
fc5c62f26a
1 changed files with 3 additions and 0 deletions
|
@ -334,12 +334,15 @@ void COverview::close() {
|
|||
|
||||
const auto NEWIDWS = g_pCompositor->getWorkspaceByID(TILE.workspaceID);
|
||||
|
||||
const auto OLDWS = pMonitor->activeWorkspace;
|
||||
|
||||
if (!NEWIDWS)
|
||||
g_pKeybindManager->changeworkspace(std::to_string(TILE.workspaceID));
|
||||
else
|
||||
g_pKeybindManager->changeworkspace(NEWIDWS->getConfigName());
|
||||
|
||||
pMonitor->activeWorkspace->startAnim(true, true, true);
|
||||
OLDWS->startAnim(false, false, true);
|
||||
|
||||
startedOn = pMonitor->activeWorkspace;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue