summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-24 15:15:15 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-24 15:15:15 +0000
commitf8e43f6107f3a83b8c74a84c4c8f99598e2dc4c0 (patch)
tree2680c58532075caa477d253231fa63e15fc586e9 /src/gui.c
parentf4f0525c34d2aa32f214155b0dadcd274ed05dd1 (diff)
patch 8.2.4619: mapping is cancelled when mouse moves and popup is visiblev8.2.4619
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)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index fb589fc1c7..3e383a4b4e 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4968,7 +4968,7 @@ gui_mouse_moved(int x, int y)
gui_mouse_focus(x, y);
#ifdef FEAT_PROP_POPUP
- if (popup_visible)
+ if (popup_uses_mouse_move)
// Generate a mouse-moved event, so that the popup can perhaps be
// closed, just like in the terminal.
gui_send_mouse_event(MOUSE_MOVE, x, y, FALSE, 0);