Skip to content

Draft: fractional-scale-v1: Add support for binding to the output

In favor of obtaining a fractional scale factor for the output.

Born from !297

I'm not sure if I'm done all things correct, but I like the idea suggested in !297 (comment 2372975) to have this in fractional-scale-v1 protocol with the same base.

Also, we could write about "don't use output scale factor as a source to scale surfaces" or something in that manner.

  • Qt exposes this info by the QScreen(Probably GTK too)
  • Chromium exposes this per-output in a debug-page, like chrome://gpu
  • Firefox: about:support page
  • Wine WINAPI
  • Good for portability(for any possible usecase), as other platforms exposes that info too

As I mentioned, the wl_output already contains an integer-based scale factor. However, this value is incorrect when fractional scaling is used. Therefore, this change aims to provide a more accurate fractional scale factor for the outputs.

Signed-off-by: Volodymyr Zolotopupov zvova7890@gmail.com

Requirements for merging

  • Review
  • Implementations
    • KWin
    • Qt
  • ACKs from members
    • KWin
    • Qt
Edited by Volodymyr Zolotopupov

Merge request reports