Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2022-09-13 14:30:42 +0300
committerSimon Tatham <anakin@pobox.com>2022-09-13 14:32:12 +0300
commit3037244132fc1799a31ef42cbd02a9c3c8a2077c (patch)
treea2350b5da93daa10c4ead2b2bf9102fc32ef5bcc
parentb8473f0c11e3356cdf84d38ee5edf2062fc32824 (diff)
wintw_request_resize: add missing NACKs.
In cases where we refuse a resize request, either because it's too large or because the window is not currently resizable due to being maximised, we were failing to communicate that back to the Terminal so that it could stop waiting for the resize and resume processing input.
-rw-r--r--windows/window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/windows/window.c b/windows/window.c
index 6ed581cd..6a17d54b 100644
--- a/windows/window.c
+++ b/windows/window.c
@@ -1680,8 +1680,10 @@ static void wintw_request_resize(TermWin *tw, int w, int h)
/* If the window is maximized suppress resizing attempts */
if (IsZoomed(wgs.term_hwnd)) {
- if (conf_get_int(conf, CONF_resize_action) == RESIZE_TERM)
+ if (conf_get_int(conf, CONF_resize_action) == RESIZE_TERM) {
+ term_resize_request_completed(term);
return;
+ }
}
if (conf_get_int(conf, CONF_resize_action) == RESIZE_DISABLED) return;
@@ -1698,8 +1700,10 @@ static void wintw_request_resize(TermWin *tw, int w, int h)
width = (ss.right - ss.left - extra_width) / 4;
height = (ss.bottom - ss.top - extra_height) / 6;
- if (w > width || h > height)
+ if (w > width || h > height) {
+ term_resize_request_completed(term);
return;
+ }
if (w < 15)
w = 15;
if (h < 1)