X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=f7f56385b4f6672ac6b3a603577314e755fd368d;hb=06d3d751525f40869ef6dfd96e33c590008123c2;hp=7162631439eed35994bb05522afe02bf824b235a;hpb=acca181c7d39eea4904084170f8b5fae08361846;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index 7162631..f7f5638 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -366,6 +366,13 @@ Widget EngineOutputCreate(name, text) XtRealizeWidget(shell); + if(wpEngineOutput.width > 0) { + engineOutputW = wpEngineOutput.width; + engineOutputH = wpEngineOutput.height; + engineOutputX = wpEngineOutput.x; + engineOutputY = wpEngineOutput.y; + } + if (engineOutputX == -1) { int xx, yy; Window junk; @@ -499,6 +506,10 @@ void EngineOutputPopDown() XtSetArg(args[j], XtNwidth, &engineOutputW); j++; XtSetArg(args[j], XtNheight, &engineOutputH); j++; XtGetValues(engineOutputShell, args, j); + wpEngineOutput.x = engineOutputX - 4; + wpEngineOutput.y = engineOutputY - 23; + wpEngineOutput.width = engineOutputW; + wpEngineOutput.height = engineOutputH; XtPopdown(engineOutputShell); XSync(xDisplay, False); j=0;