From 6bc5f9fde1e2e9de4b67646b813c5a2dd894264e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 25 Jan 2007 14:36:20 +0000 Subject: [PATCH] This should allow switching to previous or next workspace with Workspaces [-|+]. Idea taken from http://www.bebits.com/app/3379 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19954 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/workspaces/Workspaces.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp index dac07a6b36..17fc65c4e0 100644 --- a/src/apps/workspaces/Workspaces.cpp +++ b/src/apps/workspaces/Workspaces.cpp @@ -356,6 +356,16 @@ WorkspacesApp::ArgvReceived(int32 argc, char **argv) // if the app is running, don't quit // but if it isn't, cancel the complete run, so it doesn't // open any window + if (IsLaunching()) + Quit(); + } else if (!strcmp(argv[i], "-")) { + activate_workspace(current_workspace() - 1); + + if (IsLaunching()) + Quit(); + } else if (!strcmp(argv[i], "+")) { + activate_workspace(current_workspace() + 1); + if (IsLaunching()) Quit(); } else {