X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=55a3935f39f93ed5dc58a3b87898282eb0681e32;hb=a61f78756889e18aa279dc273bd99b9af60468d7;hp=932914efa8a5ae18088de16effebc88261d0a092;hpb=25a2de7c48d693f8dd3ecc8dd9b794b140f2bdaf;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 932914e..55a3935 100644 --- a/xoptions.c +++ b/xoptions.c @@ -962,6 +962,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent (last = XtCreateManagedWidget("graph", widgetClass, form, args, j)); XtAddEventHandler(last, ExposureMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask, False, (XtEventHandler) GraphEventProc, option[i].target); // mandatory user-supplied expose handler + if(option[i].min & SAME_ROW) last = forelast, forelast = lastrow; break; case PopUp: // note: used only after Graph, so 'last' refers to the Graph widget option[i].handle = (void*) CreateComboPopup(last, option + i, i + 256*dlgNr, TRUE, option[i].value);