Commit 866b5f61 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix window size saving

GTK+ 3.20 changed behavior here to accommodate CSD differences.
Update the code to follow the recommendations in
parent b166667b
......@@ -187,7 +187,10 @@ public class Window : Gtk.ApplicationWindow {
protected override bool configure_event (Gdk.EventConfigure event) {
if (get_realized () && !(Gdk.WindowState.MAXIMIZED in get_window ().get_state ())) {
settings.set ("size", "(ii)", event.width, event.height);
int width, height;
get_size (out width, out height);
settings.set ("size", "(ii)", width, height);
return base.configure_event (event);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment