]> git.eshelyaron.com Git - emacs.git/commit
Resurrect mouse-highlight of close buttons on tab-bar
authorEli Zaretskii <eliz@gnu.org>
Tue, 13 Apr 2021 13:40:42 +0000 (16:40 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 13 Apr 2021 13:40:42 +0000 (16:40 +0300)
commit1667253fec963e2ffb2bb36db67564533cf92787
treea110b3de13e980b687259875e9ef253462fcdc01
parent6de79542e43ece9a12ebc032c275a6c3fee0b73b
Resurrect mouse-highlight of close buttons on tab-bar

* src/w32term.c (w32_draw_image_relief): Support tab-bar drawing
with relief as xterm.c does.

* src/xdisp.c (handle_tab_bar_click): Access the mouse-highlight
info.  Call show_mouse_face to show the button in the pressed or
the released state, according to value of DOWN_P.
(note_tab_bar_highlight): Function added back.
(note_mouse_highlight): Call note_tab_bar_highlight when the mouse
pointer is in the tab-bar window.
(show_mouse_face): Return immediately if mouse_face_window is not
set up in HLINFO.  This avoids rare assertion violations.
src/w32term.c
src/xdisp.c