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
This commit is contained in:
François Revol
2007-01-25 14:36:20 +00:00
parent 4686f4f716
commit 6bc5f9fde1
+10
View File
@@ -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 {