From: H.G. Muller Date: Tue, 17 Jan 2012 18:33:32 +0000 (+0100) Subject: Give focus to board window after ICS login X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=26c62764a8c9756dfee14ea8f98a4251bd2ea5f4;p=xboard.git Give focus to board window after ICS login toprevent that the focus remains on any popped up chat boxes, it is explicitlly set otherwise. The board window is preferred over the ICS interaction window, because you can type from there to the ICS anyway, and it makes all accelerator keys available. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index b73f861..872cf9a 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -8544,7 +8544,7 @@ DisplayIcsInteractionTitle(char *str) char consoleTitle[MSG_SIZ]; snprintf(consoleTitle, MSG_SIZ, "%s: %s", szConsoleTitle, str); - SetWindowText(hwndConsole, consoleTitle); + SetWindowText(hwndConsole, consoleTitle); if(appData.chatBoxes) { // [HGM] chat: open chat boxes char buf[MSG_SIZ], *p = buf, *q; @@ -8555,6 +8555,8 @@ DisplayIcsInteractionTitle(char *str) if(*p) ChatPopUp(p); } while(p=q); } + + SetActiveWindow(hwndMain); } void