diff options
Diffstat (limited to 'lib/astal/gtk4/src/widget')
-rw-r--r-- | lib/astal/gtk4/src/widget/window.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/astal/gtk4/src/widget/window.vala b/lib/astal/gtk4/src/widget/window.vala index 3b0d113..e37181a 100644 --- a/lib/astal/gtk4/src/widget/window.vala +++ b/lib/astal/gtk4/src/widget/window.vala @@ -99,7 +99,7 @@ public class Astal.Window : Gtk.Window { set_anchor(this, Edge.RIGHT, WindowAnchor.RIGHT in value); } get { - var a = WindowAnchor.NONE; + var a = 0; if (get_anchor(this, Edge.TOP)) a = a | WindowAnchor.TOP; @@ -112,6 +112,9 @@ public class Astal.Window : Gtk.Window { if (get_anchor(this, Edge.BOTTOM)) a = a | WindowAnchor.BOTTOM; + if (a == 0) + return WindowAnchor.NONE; + return a; } } |