azul icon indicating copy to clipboard operation
azul copied to clipboard

Multi-monitor resolution issues in i3 wm

Open theduke opened this issue 5 years ago • 2 comments

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

theduke avatar Apr 09 '19 15:04 theduke

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?

fschutt avatar Apr 10 '19 23:04 fschutt

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.

theduke avatar Apr 11 '19 23:04 theduke