aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2015-07-04 14:23:27 +0300
committerEli Zaretskii2015-07-04 14:23:27 +0300
commit65571b37ed5300546ea75da7888f73941011d0d0 (patch)
treef885fd20b0544ffe7c2de6359d46724870b24ef0 /src
parentcdd5e86967e0a3d23da3079dc5b17ace699e66b3 (diff)
downloademacs-65571b37ed5300546ea75da7888f73941011d0d0.tar.gz
emacs-65571b37ed5300546ea75da7888f73941011d0d0.zip
Fix mouse pointer on w32 when a menu is active
* src/w32fns.c (w32_wnd_proc): Don't change the mouse pointer shape while a menu is in use. This started happening since we now send WM_EMACS_SHOWCURSOR messages when the mouse moves.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index fa26e67364c..6982eca84ac 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4015,7 +4015,9 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
4015 if (f && cursor) 4015 if (f && cursor)
4016 { 4016 {
4017 f->output_data.w32->current_cursor = cursor; 4017 f->output_data.w32->current_cursor = cursor;
4018 if (!f->output_data.w32->hourglass_p) 4018 /* Don't change the cursor while menu-bar menu is in use. */
4019 if (!f->output_data.w32->menubar_active
4020 && !f->output_data.w32->hourglass_p)
4019 { 4021 {
4020 if (f->pointer_invisible) 4022 if (f->pointer_invisible)
4021 SetCursor (NULL); 4023 SetCursor (NULL);