summaryrefslogtreecommitdiff
path: root/lib/astal/gtk3/src
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-11-02 23:53:41 +0100
committerAylur <[email protected]>2024-11-02 23:57:22 +0100
commitcdaf8905ac3d566284719a29af6e4eddc10bb857 (patch)
tree6bd3ffc4848cae29dede4c489c8b5f5a17d0e085 /lib/astal/gtk3/src
parent031321b3f418369a6c4ce578ba2673b7631117c1 (diff)
parentd47b470f68a8e5f2d19f32fbfb1de95752ba8eb8 (diff)
Merge branch 'main' into feat/gtk4
Diffstat (limited to 'lib/astal/gtk3/src')
-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;