Fedora 41, GTK4 and Xorg

I upgraded a few of my machines to Fedora 41.
I noticed an issue with using GTK4 apps with Xorg. I’ve found that initially they will not render a display. The program runs but the window is transparent.
I found this note New renderers for GTK – GTK Development Blog that is helpful.
Using the vulkan renderer everything looks OK but not with the ngl renderer.
I have this problem with systems with Intel and AMD Radeon GPUs.
So, if I add GSK_RENDERER=vulkan things work.
$ GSK_RENDERER=vulkan gtk4-widget-factory

I filed a bug but I’m sure its an upstream issue.
Just noting this here in case its helpful for others still running Xorg.

1 Like

Added bug-reported

Added f41

This was fixed in GTK 4.16.1 that just rolled out to Fedora 41.

3 Likes

Added bug-fixed and removed bug-reported