diff --git a/daemon-gtk3/Window.vala b/daemon-gtk3/Window.vala index 3e864139e..5b42c4ecd 100644 --- a/daemon-gtk3/Window.vala +++ b/daemon-gtk3/Window.vala @@ -6,13 +6,12 @@ */ public class Gala.Daemon.Window : Gtk.Window { + public int width { get; construct; } + public int height { get; construct; } public Gtk.Box content { get; construct; } public Window (int width, int height) { - Object ( - default_width: width, - default_height: height - ); + Object (width: width, height: height); } class construct { @@ -34,7 +33,9 @@ public class Gala.Daemon.Window : Gtk.Window { title = "MODAL"; child = content = new Gtk.Box (HORIZONTAL, 0) { hexpand = true, - vexpand = true + vexpand = true, + width_request = width, + height_request = height }; set_visual (get_screen ().get_rgba_visual ()); diff --git a/daemon/DBus.vala b/daemon/DBus.vala index 71c1f178c..938be76aa 100644 --- a/daemon/DBus.vala +++ b/daemon/DBus.vala @@ -175,8 +175,8 @@ public class Gala.Daemon.DBus : GLib.Object { y /= scale_factor; } - window.default_width = display_width; - window.default_height = display_height; + window.child.width_request = display_width; + window.child.height_request = display_height; window.present (); Gdk.Rectangle rect = {