diff --git a/README.md b/README.md
index f74ac10..f295dd2 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,6 @@ As the name suggests
While Wayland is the future
I still want Xorg
-
diff --git a/src/windowManager.cpp b/src/windowManager.cpp
index 4b533c7..37d1dc1 100644
--- a/src/windowManager.cpp
+++ b/src/windowManager.cpp
@@ -1756,6 +1756,8 @@ void CWindowManager::moveActiveFocusTo(char dir) {
}
void CWindowManager::relativeWorkspace(int relativenum) {
+ if (activeWorkspaceID + relativenum < lowerWorkspaceLimit) return;
+ if (activeWorkspaceID + relativenum > upperWorkspaceLimit) return;
changeWorkspaceByID(activeWorkspaceID + relativenum);
}
diff --git a/src/windowManager.hpp b/src/windowManager.hpp
index 5c2a9e7..b646aaa 100644
--- a/src/windowManager.hpp
+++ b/src/windowManager.hpp
@@ -54,6 +54,8 @@ public:
std::deque