diff options
| author | Po Lu | 2021-10-20 15:36:59 +0800 |
|---|---|---|
| committer | Juri Linkov | 2021-10-20 19:42:12 +0300 |
| commit | 29fdc65860e95a6e1c74147a3d310878080f6118 (patch) | |
| tree | 2bf4ede630b045e0770c9a4f776f5555911e9788 /src | |
| parent | 72365926685089791f97968b63b3632807abbdff (diff) | |
| download | emacs-29fdc65860e95a6e1c74147a3d310878080f6118.tar.gz emacs-29fdc65860e95a6e1c74147a3d310878080f6118.zip | |
Fix tab bar item highlight when a mouse click is dropped
* src/xdisp.c (note_mouse_highlight): Clear last_tab_bar_item if the
movement wasn't made on top of the tab bar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 67946a56b47..97ba6721781 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -33652,6 +33652,14 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 33652 | else | 33652 | else |
| 33653 | return; | 33653 | return; |
| 33654 | } | 33654 | } |
| 33655 | else | ||
| 33656 | { | ||
| 33657 | /* The mouse might have pressed into the tab bar, but might | ||
| 33658 | also have been released outside the tab bar, so | ||
| 33659 | f->last_tab_bar_item must be reset, in order to make sure the | ||
| 33660 | item can be still highlighted again in the future. */ | ||
| 33661 | f->last_tab_bar_item = -1; | ||
| 33662 | } | ||
| 33655 | #endif | 33663 | #endif |
| 33656 | 33664 | ||
| 33657 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (HAVE_EXT_TOOL_BAR) | 33665 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (HAVE_EXT_TOOL_BAR) |