[comp.windows.x] ForceLeaveNotify

mike@cosmos.acs.calpoly.edu (Mike Patnode) (03/13/89)

In article <9285@polyslo.CalPoly.EDU> mike@cosmos.acs.calpoly.edu (Mike Patnode) writes:
>This fixes the bug which somebody posted earlier.

Oops, the famous 1:00am mind lapse: I forgot to tell you how to use it.

ForceLeaveNotfy() must be called after the Popup has been PoppedDown,
else the event will go to the bit bucket.  Here are some examples:

static Widget PoppedMe;

XtCallbackProc AttributesPressed(w,closure,call_data)
    Widget w;
    caddr_t closure;
    caddr_t call_data;
    {
    PoppedMe=w;
    XtPopup(AttributesPopup, XtGrabExclusive);
    }

XtCallbackProc AttributesCancelPressed(w,closure,call_data)
    Widget w;
    caddr_t closure;
    caddr_t call_data;
    {
    XtPopdown(AttributesPopup);
    ForceLeaveNotify(PoppedMe);
    }

"Tell the Moon Dog, tell March Hare"
-----
Mike "Dodger" Patnode          |       mike@cosmos.ACS.CalPoly.EDU
Yitbos Innovations Inc.        |                  or              	
244 California Blvd            |       mpatnode@polyslo.CalPoly.EDU
San Luis Obispo, Ca  92630     | (805) 541-2048 / 543-9818 / 756-2516