archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
946 stars 269 forks source link

[Wayland] Magic Connector and Format Painter cursors are too small at 200% scaling #721

Closed Phillipus closed 3 years ago

Phillipus commented 3 years ago

Archi 4.8.1 Ubuntu 20.4 with Wayland at 200% scaling

The Magic Connector and Format Painter cursors are too small at 200% scaling.

When we create a cursor on Linux X11 (and Mac) we get the image data at 100%. This is different in Wayland and we need to get the image data at 200%.

I have a fix for this - query the environment variable XDG_SESSION_TYPE which will return x11 or wayland. From this we can determine what image data scaling to use.

Phillipus commented 3 years ago

Fixed