mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 20:45:02 -05:00
Squelch some spurious resize events.
[originally from svn r845]
This commit is contained in:
parent
eac718ee1b
commit
947c03869e
5
window.c
5
window.c
@ -1060,6 +1060,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
|||||||
static int ignore_clip = FALSE;
|
static int ignore_clip = FALSE;
|
||||||
static int just_reconfigged = FALSE;
|
static int just_reconfigged = FALSE;
|
||||||
static int resizing = FALSE;
|
static int resizing = FALSE;
|
||||||
|
static int need_backend_resize = FALSE;
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_TIMER:
|
case WM_TIMER:
|
||||||
@ -1422,10 +1423,12 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
|||||||
case WM_ENTERSIZEMOVE:
|
case WM_ENTERSIZEMOVE:
|
||||||
EnableSizeTip(1);
|
EnableSizeTip(1);
|
||||||
resizing = TRUE;
|
resizing = TRUE;
|
||||||
|
need_backend_resize = FALSE;
|
||||||
break;
|
break;
|
||||||
case WM_EXITSIZEMOVE:
|
case WM_EXITSIZEMOVE:
|
||||||
EnableSizeTip(0);
|
EnableSizeTip(0);
|
||||||
resizing = FALSE;
|
resizing = FALSE;
|
||||||
|
if (need_backend_resize)
|
||||||
back->size();
|
back->size();
|
||||||
break;
|
break;
|
||||||
case WM_SIZING:
|
case WM_SIZING:
|
||||||
@ -1502,6 +1505,8 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
|||||||
*/
|
*/
|
||||||
if (!resizing)
|
if (!resizing)
|
||||||
back->size();
|
back->size();
|
||||||
|
else
|
||||||
|
need_backend_resize = TRUE;
|
||||||
just_reconfigged = FALSE;
|
just_reconfigged = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user