mirror of https://github.com/hyprwm/Hypr.git
Add `changeToLastWorkspace` method to `windowManager.cpp`
This commit is contained in:
parent
22a2526ddf
commit
2ae7c09e17
|
@ -1667,6 +1667,12 @@ 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() {
|
||||||
|
changeWorkspaceByID(lastActiveWorkspaceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWindowManager::focusOnWorkspace(const int& work) {
|
void CWindowManager::focusOnWorkspace(const int& work) {
|
||||||
|
|
Loading…
Reference in New Issue