It's actually by design, though if this is the right choice -- is up for discussion.
So I'm thinking there's three possibilities here... or fourth which is to have it focus by default, but maybe add some kind of focus stealing prevention (or honor ICCCM).
@SpaceboyRoss01 pointed out in https://github.com/os-js/OS.js/issues/671 that windows does not focus automatically and perceived this as a bug.
It's actually by design, though if this is the right choice -- is up for discussion.
So I'm thinking there's three possibilities here... or fourth which is to have it focus by default, but maybe add some kind of focus stealing prevention (or honor ICCCM).
Right now you have to do, ex:
1. Add an option as local to application
Ex:
https://github.com/os-js/osjs-client/blob/master/src/application.js#L53
2: Add as an option local to the window
Ex:
https://github.com/os-js/osjs-client/blob/master/src/window.js#L47
3: Add as a configuration option globally
Ex:
https://github.com/os-js/osjs-client/blob/master/src/config.js#L102