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
Fixes #2023
  • Loading branch information
pluiedev committed Feb 5, 2025
1 parent cdd2099 commit 0c1f3d7
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 0c1f3d7

Please sign in to comment.