The positions of the X and Y from the Monitor Object are incorrect OR the WebviewWindow is summoned in the incorrect place!
Here is the code that opens the webviewwindow:
async open(monitor: Monitor, version: string, id: number|string|null =null) {
if (id == null) id = monitor.name;
console.log(monitor)
let webviewwindow = new WebviewWindow(`presentation${id}${version}`, {url: this.url, fullscreen: true, resizable: false, title: 'presention'+version, x: monitor.position.x, y: monitor.position.y});
}
console.log(monitor) output (Aka. Monitor info):
{ "name": "\\\\.\\DISPLAY1", "scaleFactor": 1.5, "position": { "type": "Physical", "x": 0, "y": 0 }, "size": { "type": "Physical", "width": 1920, "height": 1080 } }
{ "name": "\\\\.\\DISPLAY216", "scaleFactor": 1, "position": { "type": "Physical", "x": 1920, "y": 0 }, "size": { "type": "Physical", "width": 1920, "height": 1080 } }
{ "name": "\\\\.\\DISPLAY217", "scaleFactor": 1, "position": { "type": "Physical", "x": 0, "y": 1080 }, "size": { "type": "Physical", "width": 1920, "height": 1080 } }
P.s. this has tag Windows since thats what I tested, I don't have linux or macos at all or with multiple (virtual) screens.