From 8da6cc3a765220816e798538937cb3654b39d0c0 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Mon, 1 Nov 2021 00:40:30 +0100 Subject: [PATCH] Restore original window save/restore behaviour --- src/mainframe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainframe.cpp b/src/mainframe.cpp index 42effa4..3a763b4 100644 --- a/src/mainframe.cpp +++ b/src/mainframe.cpp @@ -2917,7 +2917,7 @@ void MainFrame::Create() } #endif -#if 0 +#if 1 if (g_layout_globals.nState & GDK_WINDOW_STATE_MAXIMIZED) { WindowPosition default_position(-1, -1, 640, 480); window_set_position(window, default_position); @@ -2926,6 +2926,7 @@ void MainFrame::Create() window_set_position(window, g_layout_globals.m_position); gtk_window_resize(window, g_layout_globals.m_position.w, g_layout_globals.m_position.h); } + UpdateAllWindows(); #else WindowPosition default_position(-1, -1, 640, 480); window_set_position(window, default_position);