GNU bug report logs - #69870
29.2; Simple fix for Motif "XtGrabPointer failed."

Previous Next

Package: emacs;

Reported by: "Sparapani, Rodney" <rsparapa <at> mcw.edu>

Date: Mon, 18 Mar 2024 16:16:02 UTC

Severity: normal

Found in version 29.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 69870 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: "Sparapani, Rodney" <rsparapa <at> mcw.edu>
Cc: 69870 <at> debbugs.gnu.org
Subject: Re: bug#69870: 29.2; Simple fix for Motif "XtGrabPointer failed."
Date: Tue, 19 Mar 2024 08:54:29 +0800
"Sparapani, Rodney" <rsparapa <at> mcw.edu> writes:
> Usually, this will lock-up emacs and you have to kill it from
>
> the window manager which seems to be the only option available.
>
> When there are unsaved files, you still get a prompt for that

> so it is not a crash, but just very annoying.
>
> However, I realized that this bug/feature had already been
>
> addressed for LUCID scrollbars in lwlib/xlwmenu.c but that code
>
> is inactive for Motif.  So the simple solution is to uncomment 
>
> this block from lines 2906 to 2913 for Motif as well...
>
> //#ifdef emacs
>
>   if (x_had_errors_p (display))
>
>     {
>
>       pointer_grabbed = 0;
>
>       XtUngrabPointer ((Widget)mw, event->time);
>
>     }
>
>   x_uncatch_errors ();
>
> //#endif

The macro emacs is always defined, and this block of code relies on the
presence of an earlier call to x_catch_errors, which would not have been
satisified if this "#ifdef emacs" was inactive.  Therefore, something
else is at work here.




This bug report was last modified 1 year and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.