X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=1c711bbde034b7ab1f7cfa0de4f7be31bf2fb782;hb=02de46755f727ffb565f7c855f37c344eee925ff;hp=99ca568792f341458fb1375ae8284ba6366256b5;hpb=4dc77c6e72e3ec99cd8a57c9442b7511c47d3dca;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 99ca568..1c711bb 100644 --- a/xoptions.c +++ b/xoptions.c @@ -682,7 +682,7 @@ SetPositionAndSize (Arg *args, Widget leftNeigbor, Widget topNeigbor, int b, int } int -GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent, int modal) +GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent, int modal, int top) { Arg args[24]; Widget popup, layout, dialog=NULL, edit=NULL, form, last, b_ok, b_cancel, previousPane = NULL, textField = NULL, oldForm, oldLastRow, oldForeLast; @@ -720,11 +720,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent shells[BoardWindow] = shellWidget; parents[dlgNr] = parent; popup = shells[dlgNr] = -#if TOPLEVEL - XtCreatePopupShell(title, modal ? transientShellWidgetClass : topLevelShellWidgetClass, -#else - XtCreatePopupShell(title, transientShellWidgetClass, -#endif + XtCreatePopupShell(title, !top || !appData.topLevel ? transientShellWidgetClass : topLevelShellWidgetClass, shells[parent], args, i); layout =