diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 923eccf8..dfe8f5d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - name: Install Dependencies run: | apt update - apt install -y libgranite-7-dev libgtk-4-dev meson valac + apt install -y libgranite-7-dev libgtk-4-dev libpantheon-wayland-1-dev meson valac - name: Build run: | meson build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75541c9a..3ff8de5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,4 +25,4 @@ jobs: GIT_USER_NAME: "elementaryBot" GIT_USER_EMAIL: "builds@elementary.io" with: - release_branch: 'horus' + release_branch: 'noble' diff --git a/data/portals.metainfo.xml.in b/data/portals.metainfo.xml.in index 4e00c7ff..4d4e05c9 100644 --- a/data/portals.metainfo.xml.in +++ b/data/portals.metainfo.xml.in @@ -26,6 +26,18 @@ contact_at_elementary.io + + +

New Features:

+
    +
  • Updated translations
  • +
+
+ + Center and Keep on Top display settings dialog + +
+

New Features:

diff --git a/meson.build b/meson.build index 629fc356..6d831244 100644 --- a/meson.build +++ b/meson.build @@ -26,6 +26,7 @@ if meson.get_compiler('vala').version().version_compare('>=0.56.1') ] endif +pantheon_wayland_dep = dependency('pantheon-wayland-1') x11_dep = dependency('x11') add_project_arguments( diff --git a/src/Access/Dialog.vala b/src/Access/Dialog.vala index 0c54fe6a..d438c66d 100644 --- a/src/Access/Dialog.vala +++ b/src/Access/Dialog.vala @@ -4,7 +4,7 @@ */ [DBus (name = "org.freedesktop.impl.portal.Request")] -public class Access.Dialog : Granite.MessageDialog { +public class Access.Dialog : Granite.MessageDialog, PantheonWayland.ExtendedBehavior { public enum ButtonAction { SUGGESTED, DESTRUCTIVE @@ -73,6 +73,14 @@ public class Access.Dialog : Granite.MessageDialog { custom_bin.orientation = Gtk.Orientation.VERTICAL; custom_bin.spacing = 6; + + if (parent_window == "") { + child.realize.connect (() => { + connect_to_shell (); + make_centered (); + set_keep_above (); + }); + } } public override void show () { diff --git a/src/meson.build b/src/meson.build index c17ab23e..f995b995 100644 --- a/src/meson.build +++ b/src/meson.build @@ -29,6 +29,7 @@ executable( gio_dep, granite_dep, gtk_deps, + pantheon_wayland_dep, x11_dep ], install: true,