summaryrefslogtreecommitdiff
path: root/src/Input.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-06-30 09:53:52 +0000
committerDana Jansens <danakj@orodu.net>2002-06-30 09:53:52 +0000
commitffa4c7f3414944869016497a4f560c24b9d8b3e9 (patch)
treea0e234cd369a1cefc29832d5d9d8b885ddcbf6bd /src/Input.cc
parent18064df19f670589b9387c194b55345c717473db (diff)
sync with bb. mostly cleanups in Window.cc
Diffstat (limited to 'src/Input.cc')
-rw-r--r--src/Input.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Input.cc b/src/Input.cc
index d091fefb..97dabf84 100644
--- a/src/Input.cc
+++ b/src/Input.cc
@@ -253,6 +253,32 @@ void BInput::doAction(BlackboxWindow *window, Action action) const {
if (window && window->isClosable()) window->close();
return;
+ case NextWorkspace: {
+ BScreen *s;
+ unsigned int w;
+ s = _blackbox->getFocusedScreen();
+ if (s) {
+ w = s->getCurrentWorkspaceID();
+ if (++w >= s->getWorkspaceCount())
+ w = 0;
+ s->changeWorkspaceID(w);
+ }
+ return;
+ }
+
+ case PrevWorkspace: {
+ BScreen *s;
+ int w;
+ s = _blackbox->getFocusedScreen();
+ if (s) {
+ w = s->getCurrentWorkspaceID();
+ if (w-- == 0)
+ w = s->getWorkspaceCount() - 1;
+ s->changeWorkspaceID(w);
+ }
+ return;
+ }
+
case BeginMove:
if (window && window->isMovable()) {
Window root_return, child_return;