[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69870: 29.2; Simple fix for Motif "XtGrabPointer failed."
From: |
Po Lu |
Subject: |
bug#69870: 29.2; Simple fix for Motif "XtGrabPointer failed." |
Date: |
Tue, 19 Mar 2024 08:54:29 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
"Sparapani, Rodney" <rsparapa@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.