diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 4eae1b6..5dd5f9a 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1913,7 +1913,7 @@ void BScreen::nextWorkspace(const int delta) { | |||
1913 | Goes to the workspace "left" of the current | 1913 | Goes to the workspace "left" of the current |
1914 | */ | 1914 | */ |
1915 | void BScreen::prevWorkspace(const int delta) { | 1915 | void BScreen::prevWorkspace(const int delta) { |
1916 | changeWorkspaceID( (currentWorkspaceID() - delta + numberOfWorkspaces()) % numberOfWorkspaces()); | 1916 | changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); |
1917 | } | 1917 | } |
1918 | 1918 | ||
1919 | /** | 1919 | /** |