From 26c62764a8c9756dfee14ea8f98a4251bd2ea5f4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 17 Jan 2012 19:33:32 +0100 Subject: [PATCH] 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. --- winboard/winboard.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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 -- 1.7.0.4