From ae776c5571ae469508e1c6e9df225dae999f79c0 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 28 Sep 2011 20:46:21 +0200 Subject: [PATCH] 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. --- winboard/wedittags.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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), -- 1.7.0.4