zhrexl / DrawOnYourScreen2

GNU General Public License v3.0
209 stars 20 forks source link

Add Multiscreen support #46

Open Julientroploin opened 9 months ago

Julientroploin commented 9 months ago

Right now, I have 1 big screen (screen2) and 1 small (screen1) screen on my PC. Screen2 is set as "primary screen" in Gnome.

DrawOnYourScreen2 only allow me to draw sometime on my screen1 and sometime on my screen2 without explanations.

I'd like to have the choice Drawing on screen1 / screen2 (/Extended screen ?) in the contextual menu.

Capture d’écran du 2023-09-16 15-36-36

tarikgraba commented 8 months ago

The drawing starts on the screen where you have your mouse cursor positioned. At least this is how it behaves with my setup (Gnome 43 + X11).

zhrexl commented 8 months ago

The original code was meant to draw on the screen you started the extension. If your focus is on screen2 when you started the extension then thats where the drawing would occur. I might refactor the code so I can improve both perfomance and support drawing on all screens simultaneously.

Thanks for your report.