aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 1b58231..044d689 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1812,21 +1812,21 @@ void BScreen::setLayer(FbTk::LayerItem &item, int layernum) {
1812/** 1812/**
1813 Goes to the workspace "right" of the current 1813 Goes to the workspace "right" of the current
1814*/ 1814*/
1815void BScreen::nextWorkspace(const int delta) { 1815void BScreen::nextWorkspace(int delta) {
1816 changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces()); 1816 changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces());
1817} 1817}
1818 1818
1819/** 1819/**
1820 Goes to the workspace "left" of the current 1820 Goes to the workspace "left" of the current
1821*/ 1821*/
1822void BScreen::prevWorkspace(const int delta) { 1822void BScreen::prevWorkspace(int delta) {
1823 changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); 1823 changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces());
1824} 1824}
1825 1825
1826/** 1826/**
1827 Goes to the workspace "right" of the current 1827 Goes to the workspace "right" of the current
1828*/ 1828*/
1829void BScreen::rightWorkspace(const int delta) { 1829void BScreen::rightWorkspace(int delta) {
1830 if (currentWorkspaceID()+delta < numberOfWorkspaces()) 1830 if (currentWorkspaceID()+delta < numberOfWorkspaces())
1831 changeWorkspaceID(currentWorkspaceID()+delta); 1831 changeWorkspaceID(currentWorkspaceID()+delta);
1832} 1832}
@@ -1834,7 +1834,7 @@ void BScreen::rightWorkspace(const int delta) {
1834/** 1834/**
1835 Goes to the workspace "left" of the current 1835 Goes to the workspace "left" of the current
1836*/ 1836*/
1837void BScreen::leftWorkspace(const int delta) { 1837void BScreen::leftWorkspace(int delta) {
1838 if (currentWorkspaceID() >= static_cast<unsigned int>(delta)) 1838 if (currentWorkspaceID() >= static_cast<unsigned int>(delta))
1839 changeWorkspaceID(currentWorkspaceID()-delta); 1839 changeWorkspaceID(currentWorkspaceID()-delta);
1840} 1840}