This commit is contained in:
end-4 2023-01-23 20:21:55 +07:00
parent f7f9d7be70
commit ae0eb7d0a2
3 changed files with 1 additions and 5 deletions

View file

@ -22,7 +22,6 @@ namespace KeybindManager {
void killactive(std::string args);
void movewindow(std::string args);
void movefocus(std::string args);
void changetorelativeworkspace(std::string args);
void changeworkspace(std::string args);
void changetolastworkspace(std::string args);
void toggleActiveWindowFullscreen(std::string args);

View file

@ -1554,8 +1554,7 @@ void CWindowManager::warpCursorTo(Vector2D to) {
}
void CWindowManager::moveActiveWindowToRelativeWorkspace(int relativenum) {
if (activeWorkspaceID + relativenum < lowerWorkspaceLimit) return;
if (activeWorkspaceID + relativenum > upperWorkspaceLimit) return;
if (activeWorkspaceID + relativenum < 1) return;
moveActiveWindowToWorkspace(activeWorkspaceID + relativenum);
}

View file

@ -54,8 +54,6 @@ public:
std::deque<int> activeWorkspaces;
int lastActiveWorkspaceID = 1;
int activeWorkspaceID = 1;
int upperWorkspaceLimit = 10;
int lowerWorkspaceLimit = 1;
// Not really pipes, but files. Oh well. Used for IPC.
SIPCPipe m_sIPCBarPipeIn = {ISDEBUG ? "/tmp/hypr/hyprbarind" : "/tmp/hypr/hyprbarin", 0};