Give focus to board window after ICS login
[xboard.git] / winboard / winboard.c
index b73f861..872cf9a 100644 (file)
@@ -8544,7 +8544,7 @@ DisplayIcsInteractionTitle(char *str)
   char consoleTitle[MSG_SIZ];\r
 \r
     snprintf(consoleTitle, MSG_SIZ, "%s: %s", szConsoleTitle, str);\r
-  SetWindowText(hwndConsole, consoleTitle);\r
+    SetWindowText(hwndConsole, consoleTitle);\r
 \r
     if(appData.chatBoxes) { // [HGM] chat: open chat boxes\r
       char buf[MSG_SIZ], *p = buf, *q;\r
@@ -8555,6 +8555,8 @@ DisplayIcsInteractionTitle(char *str)
        if(*p) ChatPopUp(p);\r
       } while(p=q);\r
     }\r
+\r
+    SetActiveWindow(hwndMain);\r
 }\r
 \r
 void\r