diff options
| author | Juri Linkov | 2021-09-13 11:14:32 +0300 |
|---|---|---|
| committer | Juri Linkov | 2021-09-13 11:15:10 +0300 |
| commit | fd1379a85aafa77c119b9b7aa811f669c575bac7 (patch) | |
| tree | 0b293aa0e8f1d55881e465e9e7748b8e9d978542 /src/bytecode.c | |
| parent | 4ee8b4d225176191bc0778ab9cbe5bb481d4704c (diff) | |
| download | emacs-fd1379a85aafa77c119b9b7aa811f669c575bac7.tar.gz emacs-fd1379a85aafa77c119b9b7aa811f669c575bac7.zip | |
Support mouse events clicked on the tab bar but outside of any tab (bug#41343)
* lisp/tab-bar.el (tab-bar--key-to-number): Return non-nil non-numeric t
when no tab is used. Return nil for current-tab.
(tab-bar-mouse-select-tab, tab-bar-mouse-close-tab): Do nothing
when tab-bar--key-to-number returns non-nil non-numeric t
for click events outside of any tab.
(tab-bar-mouse-context-menu): Add context menu when mouse is clicked
outside of tabs. Add "Duplicate" alongside with "Close" to the menu
used when mouse is clicked on a tab.
(toggle-tab-bar-mode-from-frame, toggle-frame-tab-bar): Move code
closer to 'tab-bar-show'.
* src/xdisp.c (handle_tab_bar_click): Return Qtab_bar with empty list
when mouse is clicked on the tab bar but outside of any tab.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions