diff options
| author | Manuel Giraud | 2023-10-06 14:27:02 +0200 |
|---|---|---|
| committer | Po Lu | 2023-10-29 18:18:52 +0800 |
| commit | 27ccf2230bced7248a86e3741b45734bde77cb42 (patch) | |
| tree | cc2ecc4e36553e524c51acfd2f5c006ee6a8a193 /src | |
| parent | 59a3edc3559057e6f0346e3f1b3b13e8ef3e1683 (diff) | |
| download | emacs-27ccf2230bced7248a86e3741b45734bde77cb42.tar.gz emacs-27ccf2230bced7248a86e3741b45734bde77cb42.zip | |
Set non-text mouse cursor on menu bar
* src/xdisp.c (note_mouse_highlight): Set non-text mouse cursor on
menu bar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 578131a4005..20c7634fc3e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -35537,6 +35537,16 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 35537 | w = XWINDOW (window); | 35537 | w = XWINDOW (window); |
| 35538 | frame_to_window_pixel_xy (w, &x, &y); | 35538 | frame_to_window_pixel_xy (w, &x, &y); |
| 35539 | 35539 | ||
| 35540 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (HAVE_EXT_MENU_BAR) | ||
| 35541 | /* Handle menu-bar window differently since it doesn't display a | ||
| 35542 | buffer. */ | ||
| 35543 | if (EQ (window, f->menu_bar_window)) | ||
| 35544 | { | ||
| 35545 | cursor = FRAME_OUTPUT_DATA (f)->nontext_cursor; | ||
| 35546 | goto set_cursor; | ||
| 35547 | } | ||
| 35548 | #endif | ||
| 35549 | |||
| 35540 | #if defined (HAVE_WINDOW_SYSTEM) | 35550 | #if defined (HAVE_WINDOW_SYSTEM) |
| 35541 | /* Handle tab-bar window differently since it doesn't display a | 35551 | /* Handle tab-bar window differently since it doesn't display a |
| 35542 | buffer. */ | 35552 | buffer. */ |