* src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click.
* src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit
from the event modifiers.
* lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video
on console/xterm because the selected tab already uses inverse-video.
'((default
:inherit tab-line-tab)
(((class color) (min-colors 88))
- :background "grey85")
- (t
- :inverse-video t))
+ :background "grey85"))
"Tab line face for tab with current buffer in selected window."
:version "27.1"
:group 'tab-line-faces)
else {
f->mouse_moved = 0;
term_mouse_click (&ie, event, f);
+ if (tty_handle_tab_bar_click (f, event->x, event->y,
+ (ie.modifiers & down_modifier) != 0, &ie))
+ {
+ /* tty_handle_tab_bar_click stores 2 events in the event
+ queue, so we are done here. */
+ count += 2;
+ return count;
+ }
}
done:
f->last_tab_bar_item = prop_idx;
else
{
+ /* Force reset of up_modifier bit from the event modifiers. */
+ if (event->modifiers & up_modifier)
+ event->modifiers &= ~up_modifier;
+
/* Generate a TAB_BAR_EVENT event. */
Lisp_Object frame;
Lisp_Object key = AREF (f->tab_bar_items,