X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8f22582cf466052917dad28301545cfa60db76e8..9954aaa37368a233dc614d610ca68c2ce5a7e8cd:/window.c diff --git a/window.c b/window.c index 9948763e..546a9172 100644 --- a/window.c +++ b/window.c @@ -574,6 +574,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) * Finally show the window! */ ShowWindow(hwnd, show); + SetForegroundWindow(hwnd); /* * Open the initial log file if there is one.