Improvements:
+Improvements:
diff --git a/meson.build b/meson.build index eabdac9f7..8aaa0f49d 100644 --- a/meson.build +++ b/meson.build @@ -22,6 +22,7 @@ adw_dep = dependency('libadwaita-1', version: '>=1.4.0') json_glib_dep = dependency('json-glib-1.0') xkbregistry_dep = dependency('xkbregistry') pwquality_dep = dependency('pwquality') +pantheon_wayland_dep = dependency('pantheon-wayland-1') systemd_dep = dependency('systemd') installer_backend = get_option('installer_backend') diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 35660ad81..6dd0bd390 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -22,7 +22,7 @@ public interface UPower : GLib.Object { public abstract bool on_battery { owned get; set; } } -public class Installer.MainWindow : Gtk.ApplicationWindow { +public class Installer.MainWindow : Gtk.ApplicationWindow, PantheonWayland.ExtendedBehavior { // We have to do it step by step because the vala compiler has overflows with big numbers. private const uint64 ONE_GB = 1000 * 1000 * 1000; // Minimum 15 GB @@ -87,6 +87,11 @@ public class Installer.MainWindow : Gtk.ApplicationWindow { return Source.REMOVE; }); + + child.realize.connect (() => { + connect_to_shell (); + make_centered (); + }); } private void load_keyboard_view () { diff --git a/src/meson.build b/src/meson.build index 39df2156f..ae630da68 100644 --- a/src/meson.build +++ b/src/meson.build @@ -60,6 +60,7 @@ gui_dependencies = [ gtk_dep, adw_dep, json_glib_dep, + pantheon_wayland_dep, pwquality_dep, xkbregistry_dep ]