From ffa4c7f3414944869016497a4f560c24b9d8b3e9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 30 Jun 2002 09:53:52 +0000 Subject: sync with bb. mostly cleanups in Window.cc --- src/Input.cc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/Input.cc') 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; -- cgit v1.2.3