]> git.eshelyaron.com Git - emacs.git/commit
* lisp/tab-bar.el: Close tab only on mouse-1, not down-mouse-1 (bug#41343)
authorJuri Linkov <juri@linkov.net>
Tue, 14 Sep 2021 06:42:11 +0000 (09:42 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 14 Sep 2021 06:42:11 +0000 (09:42 +0300)
commit3f835ad5806e246ec671e0b4f5c29fbdd32e2440
tree617f51a65d0ca39c40bd0f7668ee2addf61d3f03
parent5cd5cc5dd8d016d635bffbefe9d0227e84b18871
* lisp/tab-bar.el: Close tab only on mouse-1, not down-mouse-1 (bug#41343)

* lisp/tab-bar.el (tab-bar-mouse-select-tab): Don't close the tab
when clicked on the close button.
(tab-bar-mouse-close-tab-from-button): New function.
(tab-bar-map): Bind [mouse-1] to 'tab-bar-mouse-close-tab-from-button'.
(tab-bar-mouse-move-tab): Do nothing on non-tab events.
lisp/tab-bar.el