diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index e0358fc..5d20aff 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1643,3 +1643,19 @@ void BScreen::prevWorkspace(void) { | |||
1643 | else | 1643 | else |
1644 | changeWorkspaceID(getCurrentWorkspaceID()-1); | 1644 | changeWorkspaceID(getCurrentWorkspaceID()-1); |
1645 | } | 1645 | } |
1646 | |||
1647 | //-------------- rightWorkspace --------------- | ||
1648 | // Goes to the workspace "right" of the current | ||
1649 | //-------------------------------------------- | ||
1650 | void BScreen::rightWorkspace(void) { | ||
1651 | if (getCurrentWorkspaceID()+1 < getCount()) | ||
1652 | changeWorkspaceID(getCurrentWorkspaceID()+1); | ||
1653 | } | ||
1654 | |||
1655 | //------------- leftWorkspace ---------------- | ||
1656 | // Goes to the workspace "left" of the current | ||
1657 | //-------------------------------------------- | ||
1658 | void BScreen::leftWorkspace(void) { | ||
1659 | if (getCurrentWorkspaceID() > 0) | ||
1660 | changeWorkspaceID(getCurrentWorkspaceID()-1); | ||
1661 | } | ||