Add lastActiveWorkspaceID and changeToLastWorkspace definition to header file

This commit is contained in:
imaphatduc 2022-01-07 19:12:57 +07:00
parent 2ae7c09e17
commit 29394650dd

View file

@ -47,6 +47,7 @@ public:
std::deque<CWorkspace> workspaces; std::deque<CWorkspace> workspaces;
std::deque<int> activeWorkspaces; std::deque<int> activeWorkspaces;
int lastActiveWorkspaceID = 1;
// Pipes // Pipes
SIPCPipe m_sIPCBarPipeIn = {ISDEBUG ? "/tmp/hypr/hyprbarind" : "/tmp/hypr/hyprbarin", 0}; SIPCPipe m_sIPCBarPipeIn = {ISDEBUG ? "/tmp/hypr/hyprbarind" : "/tmp/hypr/hyprbarin", 0};
@ -90,6 +91,7 @@ public:
void recalcAllDocks(); void recalcAllDocks();
void changeWorkspaceByID(int); void changeWorkspaceByID(int);
void changeToLastWorkspace();
void setAllWorkspaceWindowsDirtyByID(int); void setAllWorkspaceWindowsDirtyByID(int);
int getHighestWorkspaceID(); int getHighestWorkspaceID();
CWorkspace* getWorkspaceByID(int); CWorkspace* getWorkspaceByID(int);