Artix Linux Forum

General Category => Off-Topic => Topic started by: MorsMortium on 27 July 2025, 15:22:19

Title: GTK4 CSD
Post by: MorsMortium on 27 July 2025, 15:22:19
Thought I'd announce the new library I made, for those not on Gnome, that still want to use Gnome/GTK4/LibAdwaita apps, without the CSD that many of these force on the users. It is similar to gtk3-nocsd, has to be used with LD_PRELOAD. Currently it also depends on X, so on Wayland it needs XWayland.

https://codeberg.org/MorsMortium/GTK4-NoCSD
https://aur.archlinux.org/packages/gtk4-nocsd-git
Title: Re: GTK4 CSD
Post by: MorsMortium on 29 July 2025, 01:22:34
The library now supports Wayland. The AUR package installs that way, but it can either be modified or just the regular build command used, to disable it, it is completely optional. However, the "key" to changing the headerbar on Wayland is hidden away, so the installer does a single time bruteforce for checking where it will be in the memory. and then it uses that offset for building. It also has a list of well known offsets, currently only having GTK4.18.6, as that is what I have. These offsets are per version, the very least, but might be common among versions