hikari wayland compositor (https://hikari.acmelabs.space)

#12qutebrowser misbehaves with non-unit QT_SCALE_FACTOR

Until display scaling is implemented (as discussed in Issue #11), I am looking at scaling at the toolkit level. Qutebrowser seems to misbehave in Hikari when QT_SCALE_FACTOR is set to anything other than 1.

With QT_SCALE_FACTOR=1, hikari honors the last size for qutebrowser when launching a new instance. When QT_SCALE_FACTOR=1.25 or 2, the window starts smaller than the last size, and refocusing the window repeatedly causes it to shrink to some minimum size. Once the window is manually resized, it will stay consistent until the next launch.

A video showing the behavior is available on YouTube. Sorry for the poor video quality---I don't know what I'm doing with wf-recorder or YouTube.

Steps to reproduce

  1. Export QT_QPA_PLATFORM=wayland (or wayland-egl) in your environment.
  2. Export QT_SCALE_FACTOR=2 (or 1.25 to test a non-integer value) in your environment.
  3. Launch qutebrowser.
  4. Focus another window, then refocus qutebrowser. The window will shrink on focus.
  5. Repeat step 4 until the window reaches some minimum size.

Expected behavior

Qutebrowser should remain at a constant size as it is refocused. It should also start at the same size the window as on last exit.

Actual behavior

Qutebrowser starts smaller than when it last quit, and will shrink with each refocus.

Version tested

hikari-2.1.0_1, Void Linux x86_64, glibc