Hacker News new | ask | show | jobs
by michaelmrose 629 days ago
The desirable quantity is the result not the mechanics specifically that one can simply open windows on any display and move them between monitors without worrying about scaling. Ideally an element on one ought to be the same number of mm should you pull out a ruler.

This is easily achievable on X11 and its easily done with Wayland.

You mentioned not being able to do scaling per window. Well only with xwayland do you ever need to do so. You need it to be smarter than it is and so scaling on xwayland sucks in a way that isn't a factor in X or Wayland.

Since Wayland is dependant on xwayland for unsupported apps and mixed DPI + xwayland sucks effectively only Wayland sucks at mixed DPI.

1 comments

Sigh.

> The desirable quantity is the result not the mechanics specifically that one can simply open windows on any display and move them between monitors without worrying about scaling.

Then next time don't bring up compatibility when you talk about the benefits of staying on X11. :) You are breaking the legacy programs anyway by forcing LoDPI programs to remain un-upscaled and therefore unusable on HiDPI displays.

> Well only with xwayland do you ever need to do so.

I am sorry, but the problem I mentioned exists as well on a pure X11 setup.

And the "solution" for this problem, on this setup, is to scale up the entire desktop (blurriness everywhere) which is decidedly worse than XWayland where only a single window is affected, assuming your other HiDPI-aware programs run natively on Wayland (which, from my experience, is pretty much true -- after all, HiDPI programs most likely are still actively developed).

The only other viable choice on a pure-X11 setup is a non-solution: just live with the tiny UI whenever you are using HiDPI-unaware programs.

Either you bring up documentation showing people that X11 has something akin to Wayland's buffer_scale event, or consider this discussion finished. It is tiring to talk to a brick wall.

>The only other viable choice on a pure-X11 setup is a non-solution: just live with the tiny UI whenever you are using HiDPI-unaware programs.

What programs? Something from 2003? There are a plethora of X only apps but a microscopic number at this point that aren't suitable for hidpi.

> blurriness everywhere

Nope I'm sorry I have a machine on my desk which disagrees

>Nope I'm sorry I have a machine on my desk which disagrees

I said Mixed DPI. You don't have a low DPI program running next to a high DPI program on your desktop right now, do you?

See, that's why I said you have been feigning ignorance.

And I don't blame you, ignorance is bliss! :D

Please try to read this honestly I promise I'm not screwing with you or misunderstanding.

Outside of this conversation mixed DPI for about 20 years has meant having more than one output of substantially differing DPI most commonly 4K + 1080p.

X11

Under X11 the idea of low DPI applications doesn't exist because broadly speaking every toolkit under the sun supporting integer scaling to deal with this common case about 15 years ago. Individual apps further cannot not support viewport scaling either because it happens at a layer out of scope of the application.

To test I did a search for gtk2 and loaded up fsv a gtk2 port of file system visualizer copyright 1999. It and the QT6 apps released last month I have all appear correctly scaled across high and low and high dpi monitors. The bugaboo of "low dpi apps" just flat out doesn't exist. Read that again if it doesn't make sense.

Wayland

Now leaving the Kindom of X the specter of low DPI apps appears. Suddenly instead of a unified identically scaled virtual space we have little isolated X kingdoms sprinkled inside of wayland space like pimples on a dogs ass. Because we are no longer playing at scaling in them down outside the apps purview the app must now explicitly support scaling and behold the only low DPI apps on the Linux ecosystem hath appeared!

ONLY WAYLAND HAS LOW DPI APPS

Worse its users mostly gnome users smugly assume that X users suffer from problems only they have but worse.

Remember GTK2 app from 1999 on 4K monitor, QT6 app from 2024 on 1080p monitor no manual adjustment perfect scaling. Put them side by side on the 4K perfect scaling. No farking about with anything ever.