mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-25 22:35:58 +01:00
Add changeToLastWorkspace
method to windowManager.cpp
This commit is contained in:
parent
22a2526ddf
commit
2ae7c09e17
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue