Skip to content

Commit

Permalink
expo: avoid showing old ws anim on close
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 3, 2024
1 parent b93f695 commit fc5c62f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hyprexpo/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fc5c62f

Please sign in to comment.