Add changeToLastWorkspace method to windowManager.cpp

This commit is contained in:
imaphatduc 2022-01-07 19:11:55 +07:00
parent 22a2526ddf
commit 2ae7c09e17

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) {