hass-agent / HASS.Agent

Unofficial development project for the HASS.Agent platform.
https://hass-agent.io
MIT License
403 stars 12 forks source link

Feature: Multi monitor support for webview command #152

Open ThatDeltaGuy opened 2 months ago

ThatDeltaGuy commented 2 months ago

The webview command location parameters only allow for the window to be placed on the main monitor.


Is your feature request related to a problem? Please describe. I have the webview pop-up when the doorbell is pressed with video stream from the doorbell, but this can cause issues if I'm running something in full-screen on my main monitor.

Describe the solution you'd like I'd like to be able to choose the monitor I want to use as well as the location x/y

Describe alternatives you've considered I have tried setting x/y to negative and over positive values too, it's just stuck to 1 screen

denisabt commented 2 months ago

I have looked into it, and have a solution, in case this is still wanted, and nobody is already fixing this.

denisabt commented 2 months ago

This PR fixes this, and only needs to be merged. I tested this with two (and single) screen, any feedback is welcome if bugs pop up. https://github.com/hass-agent/HASS.Agent/pull/158