Patch from RDB: the xterm move-window sequences now don't screw up
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 8 Jan 2002 09:56:06 +0000 (09:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 8 Jan 2002 09:56:06 +0000 (09:56 +0000)
when the window is e.g. maximised.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1533 cda61777-01e9-0310-a592-d414129be87e

window.c

index 6f5b670..1b7f608 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);
 }