summaryrefslogtreecommitdiff
path: root/src/termchar.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-10-06 19:53:18 +0300
committerEli Zaretskii <eliz@gnu.org>2019-10-06 19:53:18 +0300
commitad76020af8498d148984daf4de545d5d610d0589 (patch)
tree1f748991403fdb1f7f1f92f449dc38e5ddcceff7 /src/termchar.h
parent9d829b8be5b86668d5165b9d0c0cdc392b558dd3 (diff)
downloademacs-ad76020af8498d148984daf4de545d5d610d0589.tar.gz
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.
Diffstat (limited to 'src/termchar.h')
-rw-r--r--src/termchar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/termchar.h b/src/termchar.h
index 796453d3cca..11c964b2b6d 100644
--- a/src/termchar.h
+++ b/src/termchar.h
@@ -231,4 +231,8 @@ extern struct tty_display_info *tty_list;
#define CURTTY() FRAME_TTY (SELECTED_FRAME())
+struct input_event;
+extern bool tty_handle_tab_bar_click (struct frame *, int, int, bool,
+ struct input_event *);
+
#endif /* EMACS_TERMCHAR_H */