Skip to content

Commit

Permalink
gtk: remove CSD styling when CSDs aren't used
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev authored and liby committed Feb 11, 2025
1 parent 2b8faf3 commit e36fea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apprt/gtk/Window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e36fea0

Please sign in to comment.