Add `changeToLastWorkspace` method to `windowManager.cpp`

This commit is contained in:
imaphatduc 2022-01-07 19:11:55 +07:00
parent 22a2526ddf
commit 2ae7c09e17
1 changed files with 6 additions and 0 deletions

View File

@ -1667,6 +1667,12 @@ 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() {
changeWorkspaceByID(lastActiveWorkspaceID);
}
void CWindowManager::focusOnWorkspace(const int& work) {