From: H.G. Muller Date: Wed, 20 Feb 2013 17:16:00 +0000 (+0100) Subject: Fix testing for valid window placement Xaw X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=bb567be9d0b4dc99e815ee4d7cef8791527e211c;p=xboard.git Fix testing for valid window placement Xaw --- diff --git a/xaw/xoptions.c b/xaw/xoptions.c index d0fdafc..f70e80f 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -1231,7 +1231,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent XtSetArg(args[j], XtNheight, (Dimension) (wp[dlgNr]->height)); j++; XtSetArg(args[j], XtNwidth, (Dimension) (wp[dlgNr]->width)); j++; } - if(wp[dlgNr]->width > 0 && wp[dlgNr]->y > 0) { + if(wp[dlgNr]->x > 0 && wp[dlgNr]->y > 0) { XtSetArg(args[j], XtNx, (Position) (wp[dlgNr]->x)); j++; XtSetArg(args[j], XtNy, (Position) (wp[dlgNr]->y)); j++; }