summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-12 20:22:27 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-12 20:22:27 +0200
commit451d4b5b7c7262631cd1f5057c75d6f5f5772fb1 (patch)
treedeb24fe64258461378994e9255c68f6179f11e31 /src/proto
parent06e2c81f6d213d197aa60019b33a263cd5176d68 (diff)
downloadvim-git-451d4b5b7c7262631cd1f5057c75d6f5f5772fb1.tar.gz
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/proto')
-rw-r--r--src/proto/popupwin.pro2
-rw-r--r--src/proto/ui.pro2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/proto/popupwin.pro b/src/proto/popupwin.pro
index 2a377a748..a27444679 100644
--- a/src/proto/popupwin.pro
+++ b/src/proto/popupwin.pro
@@ -1,4 +1,6 @@
/* popupwin.c */
+int popup_height(win_T *wp);
+int popup_width(win_T *wp);
void popup_adjust_position(win_T *wp);
void f_popup_clear(typval_T *argvars, typval_T *rettv);
void f_popup_create(typval_T *argvars, typval_T *rettv);
diff --git a/src/proto/ui.pro b/src/proto/ui.pro
index 26cfd4715..e920029af 100644
--- a/src/proto/ui.pro
+++ b/src/proto/ui.pro
@@ -65,7 +65,7 @@ int clip_x11_owner_exists(VimClipboard *cbd);
void yank_cut_buffer0(Display *dpy, VimClipboard *cbd);
int jump_to_mouse(int flags, int *inclusive, int which_button);
int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump);
-win_T *mouse_find_win(int *rowp, int *colp);
+win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup);
int get_fpos_of_mouse(pos_T *mpos);
int vcol2col(win_T *wp, linenr_T lnum, int vcol);
void ui_focus_change(int in_focus);