문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top