From: Simon Tatham Date: Tue, 8 Jan 2002 09:56:06 +0000 (+0000) Subject: Patch from RDB: the xterm move-window sequences now don't screw up X-Git-Tag: 0.52~8 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ba435fa6a0a041a331f93194d76fee07c14b79ab;p=PuTTY.git Patch from RDB: the xterm move-window sequences now don't screw up when the window is e.g. maximised. [originally from svn r1533] --- diff --git a/window.c b/window.c index 6f5b6700..1b7f6089 100644 --- a/window.c +++ b/window.c @@ -4222,6 +4222,11 @@ void set_iconic(int iconic) */ void move_window(int x, int y) { + if (cfg.resize_action == RESIZE_DISABLED || + cfg.resize_action == RESIZE_FONT || + IsZoomed(hwnd)) + return; + SetWindowPos(hwnd, NULL, x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER); }