Use libadwaita for X11 window decorations
Feature summary
Right now, mutters frames for legacy X11 windows use the default Gtk 4 theme. Since most core apps are now using libadwaita, it would make sense for legacy apps that request server-side decorations to make use of libadwaita styling.
How would you like it to work
Check to ensure that the current desktop (via XDG_CURRENT_DESKTOP
) is GNOME, and if it is, call adw_init
.
After talking with @exalm, she said that in order to have the line that divides the headerbar from the window content, a style class would need to be added to the GtkHeaderBar
that is a child of MetaFrameHeader
. She's already created the relevant styles in a wip branch of libadwaita, using the ssd-frame
style class.