comparison src/gui.c @ 28187:d27a9eed9849 v8.2.4619

patch 8.2.4619: mapping is cancelled when mouse moves and popup is visible Commit: https://github.com/vim/vim/commit/f8e43f6107f3a83b8c74a84c4c8f99598e2dc4c0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 24 15:15:15 2022 +0000 patch 8.2.4619: mapping is cancelled when mouse moves and popup is visible Problem: Mapping is cancelled when mouse moves and popup is visible. Solution: Only generate mouse moved events when a popup may use them. (closes #10004)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Mar 2022 16:30:03 +0100
parents 3ad379c0ab28
children 4190b932e6ca
comparison
equal deleted inserted replaced
28186:5d3592802fb9 28187:d27a9eed9849
4966 4966
4967 // apply 'mousefocus' and pointer shape 4967 // apply 'mousefocus' and pointer shape
4968 gui_mouse_focus(x, y); 4968 gui_mouse_focus(x, y);
4969 4969
4970 #ifdef FEAT_PROP_POPUP 4970 #ifdef FEAT_PROP_POPUP
4971 if (popup_visible) 4971 if (popup_uses_mouse_move)
4972 // Generate a mouse-moved event, so that the popup can perhaps be 4972 // Generate a mouse-moved event, so that the popup can perhaps be
4973 // closed, just like in the terminal. 4973 // closed, just like in the terminal.
4974 gui_send_mouse_event(MOUSE_MOVE, x, y, FALSE, 0); 4974 gui_send_mouse_event(MOUSE_MOVE, x, y, FALSE, 0);
4975 #endif 4975 #endif
4976 } 4976 }