From 4e05e1040407ccd21a296950216caf2cf1a31e0d Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 23 Dec 2010 15:44:20 +0000 Subject: [PATCH] Another fix to yesterday's window-resizing revamp: when restoring from maximised state, we must be sure to disable the window offset used to centre the terminal in cases where the window is non-negotiably the wrong size (e.g. maximised). Hence we must call reset_window after our terminal resize. git-svn-id: svn://svn.tartarus.org/sgt/putty@9044 cda61777-01e9-0310-a592-d414129be87e --- windows/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/window.c b/windows/window.c index d73c04bc..cd583bf0 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2771,6 +2771,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, h = (height-cfg.window_border*2) / font_height; if (h < 1) h = 1; term_size(term, h, w, cfg.savelines); + reset_window(2); } else if (cfg.resize_action != RESIZE_FONT) reset_window(2); else -- 2.11.0