summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-10-27 23:36:06 +0000
committerAylur <[email protected]>2024-10-27 23:36:06 +0000
commitb56e169214b93fbb866401b60744a5152e278220 (patch)
tree6e043e743f573629ad5ac8aaae5bed6742d4169d /lib
parent5e227f6aca0e591c608297c6e6fc0dc2ee4e9757 (diff)
fix(astal3): windowanchor annotation
Diffstat (limited to 'lib')
-rw-r--r--lib/astal/gtk3/src/widget/window.vala13
1 files changed, 7 insertions, 6 deletions
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;