-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working for gtk-4 applications #71
Comments
Not surprised. GTK-3 theming broke after the emergence of GTK-4 and one had to use adw-gtk3 to fix compatibility. So, if you want to stick with no-CSD, the code has to be based on the standard GTK-4 theming (or maybe libadwaita?). As the app name suggests, gtk3-nocsd manipulates GTK-3, not GTK-4. |
NoCSD for GTK4 apps are also possible with this simple patch. Although hiding window controls in the apps require more work than that. |
Thank you. It would be great to have a solution that does not require recompilation, but thank you anyway! BTW, could gtk3-nocsd redefine gtk_window_enable_csd() and preload it? I guess this is what it is already doing for GTK3 applications, right? Just wondering... |
Hello. I wrote a nocsd solution based on libX11. If you are a Wayland user, you need to set the environmental variable 'GDK_BACKEND=x11'. It will force you to use XWayland instead of native wayland. https://gitlab.com/sulincix/xnocsd Note: Only works with X11 backend. does not work on python applications (because of pygobject stuff) Note: This is experimental. may break your system. Edit: if set LD_PRELOAD globally python applications works... |
It works great under XFCE! It also works for gnome-music which is a python application. |
Reading about this issue, it looks like GNOME is being uncooperative as always, and their anti-social developers are blocking any solutions to this for no reason. The proper solution might be forking GTK and patching the component, which causes this (Gtk.HeaderBar), to properly integrate with server side decorations. But that's very intrusive. |
Hi,
I am using Debian bookworm and it seems that gtk3-nocsd, which I have been using for years, works for some applications but not for others. I then realized that the ones where it doesn't are those ones which depend on gtk-4.
I guess that as the name of the project implies it will work only for gtk-3, but I wonder if there is an option to disable CSD also for gtk-4.
The text was updated successfully, but these errors were encountered: