bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67457: 29.1; Error when dragging mode line in terminal


From: Stefan Monnier
Subject: bug#67457: 29.1; Error when dragging mode line in terminal
Date: Fri, 08 Dec 2023 11:18:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> And I have a better patch here.  The real issue is that xt-mouse generated
>  mouse-movement events were getting prefixed with mode-line or tab-line
>  symbols but other mouse-movement events were not.  The following simple
> change fixes that:
>
> --- a/lisp/xt-mouse.el
> +++ b/lisp/xt-mouse.el
> @@ -63,9 +63,14 @@ xterm-mouse-translate-1
>            (is-move (eq 'mouse-movement ev-command))
>            (is-down (string-match "down-" (symbol-name ev-command))))
>
> -      ;; Mouse events symbols must have an 'event-kind property with
> -      ;; the value 'mouse-click.
> -      (when ev-command (put ev-command 'event-kind 'mouse-click))
> +      ;; Mouse events symbols must have an 'event-kind property set.
> +      ;; Most of them use the value 'mouse-click, but 'mouse-movement
> +      ;; has a different value.  See head_table in
> +      ;; keyboard.c. (bug#67457)
> +      (when ev-command (put ev-command 'event-kind
> +                            (if (eq ev-command 'mouse-movement)
> +                                'mouse-movement
> +                              'mouse-click)))

Ooohhh.... nice!


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]