From: H.G. Muller Date: Wed, 28 Sep 2011 18:46:21 +0000 (+0200) Subject: Prevent Edit Book window from stealing focus (WB) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ae776c5571ae469508e1c6e9df225dae999f79c0;p=xboard.git Prevent Edit Book window from stealing focus (WB) In WinBoard updating the book window would give it focus. Now the focus is given back to the main window, except when the Edit Book window is first created. --- diff --git a/winboard/wedittags.c b/winboard/wedittags.c index 2ec157d..4918edc 100644 --- a/winboard/wedittags.c +++ b/winboard/wedittags.c @@ -211,6 +211,7 @@ VOID EitherTagsPopUp(char *tags, char *msg, BOOLEAN edit) if (editTagsDialog) { SendMessage(editTagsDialog, WM_INITDIALOG, 0, 0); ShowWindow(editTagsDialog, SW_SHOW); + if(bookUp) SetFocus(hwndMain); } else { lpProc = MakeProcInstance((FARPROC)EditTagsDialog, hInst); CreateDialog(hInst, MAKEINTRESOURCE(DLG_EditTags),