From: H.G. Muller Date: Fri, 22 Mar 2013 18:23:25 +0000 (+0100) Subject: Make Chat Box window obey -topLevel option X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=889a5a2b3038012a2fddb09e946d1b324323b202;p=xboard.git Make Chat Box window obey -topLevel option It was always popping up as a dialog of the main board, covering it. One could argue it should always be to-level. --- diff --git a/dialogs.c b/dialogs.c index caa98c4..f32b383 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1698,7 +1698,7 @@ ChatSwitch (int n) void ChatProc () { - if(GenericPopUp(chatOptions, _("Chat box"), ChatDlg, BoardWindow, NONMODAL, 0)) + if(GenericPopUp(chatOptions, _("Chat box"), ChatDlg, BoardWindow, NONMODAL, appData.topLevel)) AddHandler(&chatOptions[0], ChatDlg, 2), AddHandler(&chatOptions[6], ChatDlg, 2); // treats return as OK MarkMenu("View.OpenChatWindow", ChatDlg); }