summaryrefslogtreecommitdiff
path: root/lib/astal/gtk3/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'lib/astal/gtk3/src/widget')
-rw-r--r--lib/astal/gtk3/src/widget/window.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/astal/gtk3/src/widget/window.vala b/lib/astal/gtk3/src/widget/window.vala
index a066806..681f277 100644
--- a/lib/astal/gtk3/src/widget/window.vala
+++ b/lib/astal/gtk3/src/widget/window.vala
@@ -130,7 +130,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;
@@ -143,6 +143,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;
}
}