From 3ad8c6db2a0d488f0d8fa23d8e71306572df8ff2 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 7 Jan 2001 17:18:24 +0000 Subject: [PATCH] Squelch some spurious resize events. git-svn-id: svn://svn.tartarus.org/sgt/putty@845 cda61777-01e9-0310-a592-d414129be87e --- window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 5dab8df4..f810eba9 100644 --- a/window.c +++ b/window.c @@ -1060,6 +1060,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, static int ignore_clip = FALSE; static int just_reconfigged = FALSE; static int resizing = FALSE; + static int need_backend_resize = FALSE; switch (message) { case WM_TIMER: @@ -1422,11 +1423,13 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, case WM_ENTERSIZEMOVE: EnableSizeTip(1); resizing = TRUE; + need_backend_resize = FALSE; break; case WM_EXITSIZEMOVE: EnableSizeTip(0); resizing = FALSE; - back->size(); + if (need_backend_resize) + back->size(); break; case WM_SIZING: { @@ -1502,6 +1505,8 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, */ if (!resizing) back->size(); + else + need_backend_resize = TRUE; just_reconfigged = FALSE; } } -- 2.11.0