1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Patch from RDB: the xterm move-window sequences now don't screw up

when the window is e.g. maximised.

[originally from svn r1533]
This commit is contained in:
Simon Tatham 2002-01-08 09:56:06 +00:00
parent 9e6923016c
commit ba435fa6a0

View File

@ -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);
}