Web lists-archives.com

Blurry tray icons with hidpi GTK3

I'm having an issue with blurry tray icons using HiDPI GTK3. I've read to set GDK_SCALE=2 and GDK_DPI_SCALE=0.5 to get proper hidpi in GTK3 applications. This works and makes the GTK3 applications scale correctly, except for the tray icons. The tray icons actually scale fine without those environment variables set. One other HiDPI tweak I have set is "xrandr --dpi 192", otherwise programs like Xterm, dmenu and the WM won't scale.

Here are some screenshots:
- Without GDK_SCALE=2 and GDK_DPI_SCALE=0.5: https://i.imgur.com/e9xEQTe.png
I get good tray icons with some unscaled menu text. GTK3 applications themselves don't scale properly as expected.
- With GDK_SCALE=2 and GDK_DPI_SCALE=0.5: https://i.imgur.com/Qizd5cp.png
You can see blurry tray icons, but with properly scaled menu text. GTK3 applications scale as expected.

It seems to me like GDK_SCALE=2 and GDK_DPI_SCALE=0.5 is causing the already scaled tray icons to scale again. Is there something I can do to fix this? Is it a bug?

I'm running gtk 3.22.1 on arch linux. I'm using i3-wm, but I've seen this same issue on xmonad with trayer and on budgie desktop too for non-indicator tray icons. I'll also note that everything scales fine in gnome desktop on my hardware which is a Dell XPS 13 9350.

Best Regards,
Daniel A.

gtk-list mailing list