←back to thread

Ancient X11 scaling technology

(flak.tedunangst.com)
283 points todsacerdoti | 3 comments | | HN request time: 0.789s | source
Show context
wmf ◴[] No.44370040[source]
Drawing a circle is kind of cheating. The hard part of scaling is drawing UI elements like raster icons or 1px hairlines to look non-blurry.
replies(5): >>44370438 #>>44370470 #>>44370877 #>>44370924 #>>44372811 #
okanat ◴[] No.44370877[source]
And also doing it for multiple monitors with differing scales. Nobody claims X11 doesn't support different DPIs. The problems occur when you have monitors with differing pixel densities.

At the moment only Windows handles that use case perfectly, not even macOS. Wayland comes second if the optional fractional scaling is implemented by the toolkit and the compositor. I am skeptical of the Linux desktop ecosystem to do correct thing there though. Both server-side decorations and fractional scaling being optional (i.e. requires runtime opt-in from compositor and the toolkit) are missteps for a desktop protocol. Both missing features are directly attributable to GNOME and their chokehold of GTK and other core libraries.

replies(5): >>44371327 #>>44371399 #>>44372093 #>>44374657 #>>44374920 #
1. dontlaugh ◴[] No.44374920[source]
I've found the opposite, that only macOS handles that perfectly.

Windows still breaks in several situations like different size and density monitors, but it's generally good enough.

Recent Gnome on Wayland does about as well as Windows.

replies(1): >>44381032 #
2. lotharcable ◴[] No.44381032[source]
Windows is the only platform that tries to do it "correctly" as per the internet peanut gallery.

And, of course, doing it "wrongly" as per what OS X and Gnome does works a lot better in practice.

replies(1): >>44389117 #
3. dontlaugh ◴[] No.44389117[source]
I don't know what Gnome does differently from macOS, but moving a window between screens of different density doesn't behave as expected. macOS gets this right, Windows doesn't either.