From 947c03869e61f4e70bc34e87630060b216fa38d8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 7 Jan 2001 17:18:24 +0000 Subject: [PATCH] Squelch some spurious resize events. [originally from svn r845] --- 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; } }