* Extended the test to be able to switch to the workspace(s) as defined on the
command line. * Using this, you can easily reproduce #1765 on BeOS, too. Ie. while it's also a bug in Haiku, this also shows a conceptional problem with the way LaunchBox switches to the current workspace. Stipp, any reason why it doesn't just let the window appear on all workspaces? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24630 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -7,18 +7,31 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
|
||||
int
|
||||
main()
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
BApplication app("application/x-vnd.Haiku-test-wss");
|
||||
|
||||
while (true) {
|
||||
activate_workspace(0);
|
||||
snooze(3000);
|
||||
activate_workspace(1);
|
||||
if (argc == 1) {
|
||||
// switch forever
|
||||
while (true) {
|
||||
activate_workspace(0);
|
||||
snooze(3000);
|
||||
activate_workspace(1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
activate_workspace(strtoul(argv[i], NULL, 0));
|
||||
snooze(3000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user