diff --git a/data/io.elementary.calendar.gschema.xml b/data/io.elementary.calendar.gschema.xml index 58b57cb8d..f531321a0 100644 --- a/data/io.elementary.calendar.gschema.xml +++ b/data/io.elementary.calendar.gschema.xml @@ -12,11 +12,6 @@ Whether the window was maximized on last run Whether the window was maximized on last run - - (-1, -1) - Window position - Most recent window position (x, y) - (1024, 750) Most recent window size diff --git a/src/Application.vala b/src/Application.vala index 06fdc3db9..73cf74629 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -138,20 +138,13 @@ namespace Maya { * Initializes the graphical window and its components */ void init_gui () { - int window_x, window_y; var rect = Gtk.Allocation (); - - saved_state.get ("window-position", "(ii)", out window_x, out window_y); saved_state.get ("window-size", "(ii)", out rect.width, out rect.height); window = new MainWindow (this); window.title = _(Build.APP_NAME); window.set_allocation (rect); - if (window_x != -1 || window_y != -1) { - window.move (window_x, window_y); - } - if (saved_state.get_boolean ("window-maximized")) { window.maximize (); } diff --git a/src/MainWindow.vala b/src/MainWindow.vala index fe4618d6a..0672b8f78 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -149,10 +149,6 @@ public class Maya.MainWindow : Hdy.ApplicationWindow { Gdk.Rectangle rect; get_allocation (out rect); Maya.Application.saved_state.set ("window-size", "(ii)", rect.width, rect.height); - - int root_x, root_y; - get_position (out root_x, out root_y); - Maya.Application.saved_state.set ("window-position", "(ii)", root_x, root_y); } return GLib.Source.REMOVE;