gtk: remove CSD styling when CSDs aren't used (#5581)

Fixes #2023
This commit is contained in:
Mitchell Hashimoto
2025-02-05 10:33:48 -08:00
committed by GitHub

View File

@ -667,6 +667,7 @@ fn gtkWindowNotifyDecorated(
// class is defined in the GtkWindow documentation:
// https://docs.gtk.org/gtk4/class.Window.html#css-nodes. A definition
// for .ssd is provided by GTK and Adwaita.
toggleCssClass(@ptrCast(object), "csd", is_decorated);
toggleCssClass(@ptrCast(object), "ssd", !is_decorated);
toggleCssClass(@ptrCast(object), "no-border-radius", !is_decorated);