]> git.eshelyaron.com Git - emacs.git/commit
Support mouse clicks on tab bar on TTY frames
authorEli Zaretskii <eliz@gnu.org>
Sun, 6 Oct 2019 16:53:18 +0000 (19:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 6 Oct 2019 16:53:18 +0000 (19:53 +0300)
commitad76020af8498d148984daf4de545d5d610d0589
tree1f748991403fdb1f7f1f92f449dc38e5ddcceff7
parent9d829b8be5b86668d5165b9d0c0cdc392b558dd3
Support mouse clicks on tab bar on TTY frames

This for now doesn't work on GPM.
* src/xdisp.c (display_tab_bar): Make the loop over tab-bar
items more efficient.
(tab_bar_item_info, tool_bar_item_info): Correct data type for
CHARPOS.
(tty_get_tab_bar_item, tty_handle_tab_bar_click): New functions.
(note_mouse_highlight): Handle help-echo of tab-bar tabs on
TTY frames.
* src/w32inevt.c (do_mouse_event): Call
tty_handle_tab_bar_click to process mouse clicks on the tab bar.
* src/termchar.h (tty_handle_tab_bar_click): Add prototype.
* src/w32console.c (w32con_set_terminal_modes): Disable Quick
Edit mode on entry, to make sure mouse events get reported to
us.
src/termchar.h
src/w32console.c
src/w32inevt.c
src/xdisp.c