mPyKen / ScreenAreaShare

Share selected area of the screen in applications that do not support this, e.g. Teams.
MIT License
148 stars 19 forks source link

allow negative x and y coordinates when placing the capture window #18

Closed nnako closed 3 months ago

nnako commented 3 months ago

The Electron framework seems to have problems when creating windows at negative origin locations. Negative locations will become significant when the user uses multiple monitors and does not configure the most left monitor as the main one. Locating windows on that monitor automatically results in negative coordinates, as the top left corner of the main window will be regarded as (0,0). By first, creating the render window at (0,0) and then doing all the other configurations and afterwards, set the desired location values (which might be negative ones) solves the conflict.