diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-12 20:22:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-12 20:22:27 +0200 |
commit | 451d4b5b7c7262631cd1f5057c75d6f5f5772fb1 (patch) | |
tree | deb24fe64258461378994e9255c68f6179f11e31 /src/gui.c | |
parent | 06e2c81f6d213d197aa60019b33a263cd5176d68 (diff) |
patch 8.1.1520: popup windows are ignored when dealing with mouse positionv8.1.1520
Problem: Popup windows are ignored when dealing with mouse position
Solution: Find the mouse position inside a popup window. Allow for modeless
selection.
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |