From 451d4b5b7c7262631cd1f5057c75d6f5f5772fb1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Jun 2019 20:22:27 +0200 Subject: patch 8.1.1520: popup windows are ignored when dealing with mouse position Problem: Popup windows are ignored when dealing with mouse position Solution: Find the mouse position inside a popup window. Allow for modeless selection. --- src/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index c4df7d9a57..a4673f0266 100644 --- a/src/gui.c +++ b/src/gui.c @@ -4926,7 +4926,7 @@ xy2win(int x, int y) col = X_2_COL(x); if (row < 0 || col < 0) /* before first window */ return NULL; - wp = mouse_find_win(&row, &col); + wp = mouse_find_win(&row, &col, FALSE); if (wp == NULL) return NULL; #ifdef FEAT_MOUSESHAPE @@ -5382,7 +5382,7 @@ gui_wingoto_xy(int x, int y) if (row >= 0 && col >= 0) { - wp = mouse_find_win(&row, &col); + wp = mouse_find_win(&row, &col, FAIL_POPUP); if (wp != NULL && wp != curwin) win_goto(wp); } -- cgit v1.2.3