mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-29 16:15:57 +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
|
// save old workspace for anim
|
||||||
auto OLDWORKSPACE = activeWorkspaces[MONITOR->ID];
|
auto OLDWORKSPACE = activeWorkspaces[MONITOR->ID];
|
||||||
|
lastActiveWorkspaceID = OLDWORKSPACE;
|
||||||
|
|
||||||
for (auto& workspace : workspaces) {
|
for (auto& workspace : workspaces) {
|
||||||
if (workspace.getID() == ID) {
|
if (workspace.getID() == ID) {
|
||||||
|
@ -1667,8 +1668,6 @@ void CWindowManager::changeWorkspaceByID(int ID) {
|
||||||
QueuedPointerWarp = Vector2D(MONITOR->vecPosition + MONITOR->vecSize / 2.f);
|
QueuedPointerWarp = Vector2D(MONITOR->vecPosition + MONITOR->vecSize / 2.f);
|
||||||
|
|
||||||
// no need for the new dirty, it's empty
|
// no need for the new dirty, it's empty
|
||||||
|
|
||||||
lastActiveWorkspaceID = ID;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWindowManager::changeToLastWorkspace() {
|
void CWindowManager::changeToLastWorkspace() {
|
||||||
|
|
Loading…
Reference in a new issue