azul
azul copied to clipboard
Multi-monitor resolution issues in i3 wm
Description
I just tried out the code from the calculator example from the master branch on i3
(Arch Linux).
The mouse position is not detected correctly, seems like there is a considerable offset (both vertical and horizontal).
Also, when resizing the window, going fullscreen or moving the window to another workspace, the element size get's very large and only a small part is visible in the viewport
Version / OS
- azul version: master branch
- Operating system: Arch Linux
- Windowing system: X11 / i3 WM
Steps to Reproduce
Create a new crate, copy paste the calculator example + css / font files + run
Could you please attach screenshots or gifs what exactly is wrong, because this issue is very hard to reproduce for anyone who's not running i3. This is likely a DPI issue, so:
- Do you have multiple monitors attached?
- What are your DPI settings, is one of your monitors a 4k / HiDPI monitor?
the element size get's very large
What element, you mean the whole UI or are only certain elements too large?
You were right, the problem is indeed a second monitor (in this case the laptop screen) with a higher resolution.
When disabling the second output, everything works fine.