mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-26 03:09:49 +01:00
fixed wrong behavior with switching workspaces
This commit is contained in:
parent
29394650dd
commit
86df22e95b
1 changed files with 1 additions and 2 deletions
|
@ -1617,6 +1617,7 @@ void CWindowManager::changeWorkspaceByID(int ID) {
|
|||
|
||||
// save old workspace for anim
|
||||
auto OLDWORKSPACE = activeWorkspaces[MONITOR->ID];
|
||||
lastActiveWorkspaceID = OLDWORKSPACE;
|
||||
|
||||
for (auto& workspace : workspaces) {
|
||||
if (workspace.getID() == ID) {
|
||||
|
@ -1667,8 +1668,6 @@ void CWindowManager::changeWorkspaceByID(int ID) {
|
|||
QueuedPointerWarp = Vector2D(MONITOR->vecPosition + MONITOR->vecSize / 2.f);
|
||||
|
||||
// no need for the new dirty, it's empty
|
||||
|
||||
lastActiveWorkspaceID = ID;
|
||||
}
|
||||
|
||||
void CWindowManager::changeToLastWorkspace() {
|
||||
|
|
Loading…
Reference in a new issue