1/*
2 * Copyright 2008, Haiku Inc.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Axel D��rfler, axeld@pinc-software.de
7 */
8
9
10#include <stdlib.h>
11
12#include <Application.h>
13
14
15int
16main(int argc, char** argv)
17{
18	BApplication app("application/x-vnd.Haiku-test-wss");
19
20	if (argc == 1) {
21		// switch forever
22		while (true) {
23			activate_workspace(0);
24			snooze(3000);
25			activate_workspace(1);
26		}
27		return 0;
28	}
29
30	for (int i = 1; i < argc; i++) {
31		activate_workspace(strtoul(argv[i], NULL, 0));
32		snooze(3000);
33	}
34
35	return 0;
36}
37
38