X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=a475c588edeb020459f1106e64c22d691228392c;hb=fbefb9f0b24c20920d7ac2ddf8d2503de9365821;hp=097f881fac98a50f2d2cba01488e3a9c955b8fce;hpb=d7401f45af975eca82facb81e04b925d4e8ed6e6;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 097f881..a475c58 100644 --- a/xoptions.c +++ b/xoptions.c @@ -553,8 +553,10 @@ GraphEventProc(Widget widget, caddr_t client_data, XEvent *event) XtGetValues(widget, args, j); if(w < graph->max || w > graph->max + 1 || h != graph->value) { // use width fudge of 1 pixel - sizing = (((XExposeEvent*)event)->count >= 0); // suppress sizing on expose for ordered redraw in response to sizing. - graph->max = w; graph->value = h; // note: old values are kept if we we don't exceed width fudge + if(((XExposeEvent*)event)->count >= 0) { // suppress sizing on expose for ordered redraw in response to sizing. + sizing = 1; + graph->max = w; graph->value = h; // note: old values are kept if we we don't exceed width fudge + } } else w = graph->max; if(sizing && ((XExposeEvent*)event)->count > 0) { graph->max = 0; return; } // don't bother if further exposure is pending during resize