Question

I have a google chrome app. This application opens up a window via the chrome.app.window.create API.

The problem is that in a multi-screen setup I seemingly do not have any control over where my window is opened(main screen or secondary screen).

Is there still a way to directly (from within the application) or indirectly(e.g.: via Windows settings) influence the placement of my chrome-app window?

FYI: Under MacOS I can at least indirectly influence where the window is opened, since the window is always opened on the main-screen. And on MacOS you can set the main-screen in the OS-settings. But I have not found where I could do that in windows.

Was it helpful?

Solution

I found out how to influence the window creation under Windows in an indirect manner. You can also set which screen is the primary one.

Any direct ways of setting the screen of a chrome-app-window will trump my indirect solution, but that does not seem to be supported.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top