Dave Williss wrote:
Our testers have found a few more problems in Lesstif which
I will be tracking down. 1. Modal dialogs aren't modal. Anybody have any idea where
to look to fix this one? The dialog is created via XmCreateFormDialog
and is supposed to be FULL_APPLICATION_MODAL
ISTR I had to introduce a kluge in my code when using Lesstif; basically, the WM_TRANSIENT_FOR property is not correctly set. The kludge involved adding a handler for StructureNotifyMask on the dialog; in the handler:
if (XtIsRealized(w) && XtIsManaged(w) && event->type == MapNotify) {
XtVaGetValues(XtParent(w), XmNtransientFor, &tfw, NULL);
XSetTransientForHint(XtDisplay(w), XtWindow(XtParent(w)), XtWindow(tfw));
XtRemoveEventHandler(w, StructureNotifyMask, 0, toolbar_popup_handler, client_data);
}
HTH, but it was on a rather old version of Lesstif, the problem it attacks may have been fixed since then, so dont hold your beath! Use xprop to check.
2. I have a "wizard" dialog that changes it's contents when you
click a "next" button. The content change causes the dialog
to resize. With Lesstif, once it resizes, it resized again and
again, slowly growing by one pixel each time. It's really bizarre
and only happens on one of our dialogs. I suspect that it may
be related to the other resize problem I found yesterday.
Sorry, no idea here.
HaND, -- Michel Bardiaux Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles Tel : +32 2 790.29.41
_______________________________________________ Lesstif mailing list [EMAIL PROTECTED] https://terror.hungry.com/mailman/listinfo/lesstif
