]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Patch from RDB: the xterm move-window sequences now don't screw up
authorSimon Tatham <anakin@pobox.com>
Tue, 8 Jan 2002 09:56:06 +0000 (09:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 8 Jan 2002 09:56:06 +0000 (09:56 +0000)
when the window is e.g. maximised.

[originally from svn r1533]

window.c

index 6f5b67002e55cce2f2751266c5f2e7eee67d12e7..1b7f60891e8bc21aa62dc1db8ec8a309fb0a247a 100644 (file)
--- 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);
 }