diff --git a/data/io.elementary.code.gschema.xml b/data/io.elementary.code.gschema.xml index d0bad47f8..fe8db64eb 100644 --- a/data/io.elementary.code.gschema.xml +++ b/data/io.elementary.code.gschema.xml @@ -22,11 +22,6 @@ The saved state of the window. The saved state of the window. - - (-1, -1) - Window position - Most recent window position (x, y) - (850, 550) Most recent window size diff --git a/src/MainWindow.vala b/src/MainWindow.vala index d899b98c5..2a4d2c297 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -265,10 +265,6 @@ namespace Scratch { fullscreen (); break; default: - Scratch.saved_state.get ("window-position", "(ii)", out rect.x, out rect.y); - if (rect.x != -1 && rect.y != -1) { - move (rect.x, rect.y); - } break; } @@ -718,11 +714,6 @@ namespace Scratch { Scratch.saved_state.set ("window-size", "(ii)", width, height); } - // Save window position - int x, y; - get_position (out x, out y); - Scratch.saved_state.set ("window-position", "(ii)", x, y); - // Plugin panes size Scratch.saved_state.set_int ("hp1-size", hp1.get_position ()); Scratch.saved_state.set_int ("vp-size", vp.get_position ());