On Fri, Mar 16, 2001 at 10:17:38AM +0000, [EMAIL PROTECTED] wrote:
> Alexander -
> 
> We exchanged a couple of emails last December about the drag callback
> for Lesstif slider widgets, which is now working fine - thanks!
> 
> Can I ask about the XtRemoveGrab warning everyone seems to get
> when destroying a topLevel shell? I saw a post on the Lesstif
> mailing list reporting this problem last year, with no follow-ups.
> The comment in Vendor.c acknowledges the problem but isn't
> too illuminating about possible workarounds. Is there a workaround
> that you know about? It's not a serious problem, just a little
> irritating when the console fills with Xt warnings!
> 
> Many thanks in advance for your advice, and thanks also for all
> the work on Lesstif.
> 
> Best wishes,
> 
 > Andrew
 
 I'll forward to the list, if you don't mind.
 
 Well, I can't offer too much of a solution yet, but the comment
 inspired me to try out:
 
 diff -u -r1.72 Vendor.c
 --- Vendor.c    2001/03/16 13:47:25     1.72
 +++ Vendor.c    2001/03/16 14:43:45
 @@ -1637,7 +1637,7 @@
             DEBUGOUT(XdbDebug2("GRAB", XtParent(wid), wid, "%s:XtRemoveGrab(%d) - %s 
%s\n", __FILE__,
 __LINE__,
                 XtIsShell(wid) ? "True" : "False",
                 CoreBeingDestroyed(wid) ? "True" : "False"));
 -           XtRemoveGrab(wid);
 +           if (!XtIsTopLevelShell(wid)) XtRemoveGrab(wid);
         }
      }]
 
 which fixes the warnings for the given example in the mailinglist
 (which is now in our CVS at test/Xm/vendor/test6; olld reference is 
    http://www.mail-archive.com/[email protected]/msg00535.html)

 Question is what will break now that we removed some warnings ...


As some research (cvs annotate) indicates it was me who wrote the
toplevelshell related comment :-\
The date in CVS ("1994") is obviously wrong, but seems to explain the
lack of any reminiscence on my side ... ;-)

-- 
Alexander Mai
[EMAIL PROTECTED]

Reply via email to