News for hackers. Stuff that matters.
Re:On the Graying of Gnome by canofbars on Sunday December 20, 2020 @04:21PM (#25489632)
GTK2 fails in a lot of ways. The main one that bothers me is when I open a GTK2 app, it picks the DPI scale of one of my monitors so when I drag it over, instead of resizing to the new dpi scale, it will either become massive or tiny.
Re:On the Graying of Gnome by bigbubba on Sunday December 20, 2020 @04:25PM (#25489668)
Ah that makes sense. I've never tried it on mismatched screens.
Re:On the Graying of Gnome by justwalt on Sunday December 20, 2020 @10:18PM (#25491834)
Unfortunately, I don’t know of any DE that does this well at this point.
Re:On the Graying of Gnome by canofbars on Sunday December 20, 2020 @10:48PM (#25491970)
Gnome with wayland supports it but every time you start an xwayland app you notice issues. Native wayland/gtk3 apps have been flawless for me. Things just snap to the new scale when you drag them across.
Re:On the Graying of Gnome by hollerith on Monday December 21, 2020 @12:37AM (#25492397)
Is Chrome, Chromium, Microsoft Edge or Firefox available as a native Wayland app that just snaps to the new scale when you drag it across?
Re:On the Graying of Gnome by djsavvy on Monday December 21, 2020 @01:03AM (#25492500)
I’m pretty sure Firefox has native wayland support, which can be enabled with an environment variable.

Take a look at [1] for more.

https://www.reddit.com/r/firefox/comments/c8itj2/enabling_wa...

Re:On the Graying of Gnome by hollerith on Monday December 21, 2020 @01:23AM (#25492574)
OK, but I'd still like to know whether a firefox-wayland window will flawlessly snap to the new scaling factor when you drag it to another monitor whose scaling factor is different from the original monitor.

(Same question for Electron apps, particularly VS Code.)

Re:On the Graying of Gnome by canofbars on Monday December 21, 2020 @01:53AM (#25492693)
It does for firefox. Chrome and electron have beta support for it but I'm not sure its on by default yet.
Re:On the Graying of Gnome by thaumasiotes on Monday December 21, 2020 @02:05AM (#25492743)
This doesn't make sense to me. Surely scaling the window according to the settings that apply to the monitor it's on is a job for the window manager, and not a job for the software running inside the window?
Re:On the Graying of Gnome by auscompgeek on Monday December 21, 2020 @02:29AM (#25492850)
If the window manager were to upscale a window, you would get the typical artifacting, such as blurriness, from the upscaling. The application toolkit is the best place to do scaling, as it knows how to render text etc.

This is how it works on Windows as well; if the application reports it correctly supports scaling, Windows will let the application handle scaling (otherwise Windows will do it for the application, with the usual caveats).

Re:On the Graying of Gnome by hollerith on Tuesday December 22, 2020 @12:31AM (#25503230)
>if the application reports it correctly supports scaling, Windows will let the application handle scaling

In contrast, unless I am severely mistaken, MacOS has the application render the window normally, then applies a scaling algorithm to the output when the user has set a scaling factor (which on a Mac is set usually through System Preferences > Display) that is not an integer. (I.e., has set fractional scaling.)

I much prefer how Windows and Wayland do it. (When I use Windows, I have the luxury of free choice in the apps I use: I spend .99 of my time in VS Code, Google Chrome and a few recently-written Microsoft-provided apps like Settings. A Windows user who needs old apps or apps written by less sophisticated developers might have a much worse experience.)

In fact, I am leaving MacOS after 11 years largely because of its relatively bad implementation of fractional scaling. I find it too blurry. (If my lifestyle required the use of a laptop, I might have stuck with Apple.) But I am unusual in ways that probably make a good implementation of fractional scaling much more valuable to me that it would be to the average user.

Re:On the Graying of Gnome by scaladev on Monday December 21, 2020 @02:30AM (#25492853)
I think we're discussing UI controls scaling. This has nothing to do with WM, especially under Wayland, it's a job of your graphical toolkit.
Re:On the Graying of Gnome by AlexanderDhoore on Monday December 21, 2020 @02:47AM (#25492936)
Windows does. MacOS does. Wake me up when wayland is stable. Maybe in 10 years?
Re:On the Graying of Gnome by kaba0 on Monday December 21, 2020 @04:29PM (#25499814)
Good morning, wayland is stable