From b56e169214b93fbb866401b60744a5152e278220 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 27 Oct 2024 23:36:06 +0000 Subject: fix(astal3): windowanchor annotation --- lib/astal/gtk3/src/widget/window.vala | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/astal/gtk3/src') diff --git a/lib/astal/gtk3/src/widget/window.vala b/lib/astal/gtk3/src/widget/window.vala index e513242..9287200 100644 --- a/lib/astal/gtk3/src/widget/window.vala +++ b/lib/astal/gtk3/src/widget/window.vala @@ -1,11 +1,12 @@ using GtkLayerShell; +[Flags] public enum Astal.WindowAnchor { - NONE = 0, - TOP = 1, - RIGHT = 2, - LEFT = 4, - BOTTOM = 8, + NONE, + TOP, + RIGHT, + LEFT, + BOTTOM, } public enum Astal.Exclusivity { @@ -112,7 +113,7 @@ public class Astal.Window : Gtk.Window { * If two perpendicular edges are anchored, the surface will be anchored to that corner. * If two opposite edges are anchored, the window will be stretched across the screen in that direction. */ - public int anchor { + public WindowAnchor anchor { set { if (check("set anchor")) return; -- cgit v1.2.3