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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user