Remember position of RT when not maximized, Issue 1624 comment #5

This commit is contained in:
Ingo
2014-05-20 15:22:24 +02:00
parent 260e4da272
commit 649effe00b
3 changed files with 15 additions and 4 deletions

View File

@@ -123,8 +123,10 @@ RTWindow::RTWindow ()
set_resizable(true);
if (options.windowMaximized)
maximize();
else
else {
unmaximize();
move(options.windowX,options.windowY);
}
on_delete_has_run = false;
is_fullscreen = false;
@@ -592,6 +594,7 @@ bool RTWindow::on_delete_event(GdkEventAny* event) {
if (!options.windowMaximized) {
options.windowWidth = get_width();
options.windowHeight = get_height();
get_position (options.windowX,options.windowY);
}
Options::save ();