aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorpekdon <pekdon>2002-02-02 19:51:15 (GMT)
committerpekdon <pekdon>2002-02-02 19:51:15 (GMT)
commit0c2fc0568b5b8a90fdfec4949c0d4df81bcaacbf (patch)
tree38942ea791db4ceec863a119ca43700f1f76e768 /src/Screen.cc
parent39d4112a5e7300a8de70d09af777f8060082837a (diff)
downloadfluxbox-0c2fc0568b5b8a90fdfec4949c0d4df81bcaacbf.zip
fluxbox-0c2fc0568b5b8a90fdfec4949c0d4df81bcaacbf.tar.bz2
leftWorkspace/rightWorkspace added
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc16
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//--------------------------------------------
1650void 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//--------------------------------------------
1658void BScreen::leftWorkspace(void) {
1659 if (getCurrentWorkspaceID() > 0)
1660 changeWorkspaceID(getCurrentWorkspaceID()-1);
1661}