GTK4.15 does not seem to work on xfce4

Using Manjaro with xfce4 i can’t use the gnome-calculator (which has been explicitly installed) anymore. It seems that the latest gnome update broke any Manjaro themes for GTK4. GTK4 apps will not repaint, except using the mouse cursor. Since it worked 2 weeks ago, do I have to assume that GKT4 is not compatible anymore to non “Gnome environments”? BTW- using gtk4-demo or gtk4-widget-factory also won’t work anymore…

True, but GTK4 apps could be used until recently. I’ve been using Linux for almost 20 years - this is a first. The “libadwaita” libraries have been written exactly for this. Using an original Arch Linux on another device doesn’t have this problem. So I must assume this is a Manjaro bug… (Ooops the previous reply has vanished)

Are you saying the theme is broken? Or GTK4 in general?
If, as you say, GTK4 works on xfce on Arch … then it must mean it would work here too.
But if a theme is compatible is an entirely different scenario.
Furthermore - are your comparisons true? Are you using the same package(s) on both? And not something like libadwaita-without-adwaita on one ?

To be a pain for everyone except those that are explicitly using Adwaita on Gnome without any modifications? They seem to have more and more success with this.

yes, it did

I thought I had something to contribute, but quickly realized that that was not the case.
Neither do I have problems in Gnome, nor in Xfce4.

… can’t replicate, as it where

I simply have no clue - it all works for me.

The gnome-calculator, for instance, works just fine in Xfce4 - but doesn’t obey the dark theme that I use by default.

There likely is a remedy for that

Since i just tested and it works on my end, see if something from here helps

The gtk4 apps like this, or gnome-logs, or baobab are generally fixed with symlinking the compatible! gtk3 theme and adding the environment variable.

Take a look at this one as well. Thanks @Teo

The problem occurs with or without libadwaita-without… I’m using a theme that has its own gtk4 sass/css file.
This happens, when Matcha-dark-sea is the GTK_THEME:

Just to make sure: all of your tips have been used by me in the previous years with every new GTK4 version. The current 4.14.5 defies all of them

Unfortunately, there is no Gtk theme in the repos that supports theming Libadwaita applications out of the box. There is currently no way that I know of to apply themes to Libadwaita applications via system packages. That’s why I’ve included this message that will print when one installs or updates matcha-gtk-theme as additional steps must be taken by the user.

Since the issue neither is directly related to Gtk 4 nor Xfce itself, please edit your topic title accordingly.

EDIT: Also see my addendum below. :point_down:

In this particular case there is something else at play because i tested the exact same app and it repaints normal by me (after all the symlinking).
Videodrivers, nvidia maybe? I don’t know. I would have said Wayland but that’s not an option on xfce.

Just noticed something:

Do not set that as an environment variable. That is deprecated, was only intended for debugging and definitely was never intended to be applied by users. If you have set it, unset it and reboot.

The wiki however still has it in a prominent coloured box. And it still works.

https://wiki.archlinux.org/title/GTK

Another idea from the same wiki for the OP to try is the last section:

Because GTK switched to a new GPU renderer ngl (and vulkan in later versions), whose performance are worse than the old gl renderer(#6438, #6682, #6644, #6324 and possibly more issues), GTK 4 applications may feel sluggish and consume more resources than before.

This can be reverted by setting the environment variables below:

GSK_RENDERER=gl
GDK_DEBUG=gl-no-fractional
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.