nwg-piotr / nwg-shell

Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
Other
857 stars 14 forks source link

0.5.25 makes xwayland font rendering ugly with fractional scaling #248

Closed nergdron closed 10 months ago

nergdron commented 10 months ago

previous to yesterday's 0.5.25 release, the font rendering in all my X apps looked great with hyprland+nwg-shell. per Arch wiki recommendations, I have the following env vars set to help with that:

GDK_SCALE=2
XDG_CURRENT_DESKTOP=Unity

however, after the release and a reboot, they all look terrible. it's worth noting that this is a likely the age old complication of using Wayland fractional scaling (primary monitor is 1.5), but it was working before, and now it's that terrible bad fractional scaling we used to have.

if there's new recommended environment var or wayland settings that fix this, I'm happy to get a pointer to those docs, but it also could be a legit bug.

swappy-20240104_231624

example shell script above in blackbox terminal, which should be wayland native since it's gtk4, but is also exhibiting the same issues. many wayland native apps (like firefox) are fine. :woman_shrugging:

nwg-piotr commented 10 months ago

This update only changed default values for the screen locker on hyprland. Nothing else has been changed.

nergdron commented 10 months ago

damn. must be something else in wayland or hyprland that changed then. unfortunate.

nwg-piotr commented 10 months ago

Maybe something wrong with Hyprland v0.34.0 on your machine? Looks well on my side.

nwg-piotr commented 10 months ago

Also Visual Studio Code looks good. I use IntelliJ stuff in real life, but nothing changed here as well.

image

nergdron commented 10 months ago

vscodium on here looks fine too, either in X or Wayland mode. it seems to be mostly with electron apps (and blackbox), not even all xwayland apps. so it's pretty confusing. oh well! I'll try to figure it out, I'm just not sure where in the stack it'd be, given the weird combo of apps that're having problems.

nwg-piotr commented 10 months ago

Let me know in case you found something worth of mention in docs.

nergdron commented 10 months ago

will do!

nwg-piotr commented 10 months ago

using Wayland fractional scaling (primary monitor is 1.5)

I've just tried 1.5 scale on my 2K monitor, and Hyprland 0.34 refused to apply it:

image

Same happens if you try 1.4: it suggests 1.333333.

nergdron commented 10 months ago

that's so weird. it's not complaining here, but it does feel like hyprland changed its behaviour and is doing something weird now.

nwg-piotr commented 10 months ago

Vaxry keeps doing weird things all the time. ;)

nwg-piotr commented 9 months ago

https://www.reddit.com/r/hyprland/s/DDn2COWGTH