Mercurial > vim
changeset 18922:23f68e3cb66e v8.2.0022
patch 8.2.0022: click in popup window doesn't close it in the GUI
Commit: https://github.com/vim/vim/commit/0ce3733f7845013a66d90b193084a3664ad7ff99
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 18 21:33:22 2019 +0100
patch 8.2.0022: click in popup window doesn't close it in the GUI
Problem: Click in popup window doesn't close it in the GUI. (Sergey Vlasov)
Solution: When processing the selection also send a button release event.
(closes #5367)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Dec 2019 21:45:03 +0100 |
parents | 0be724789d54 |
children | 70df9116845e |
files | src/gui.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -3108,7 +3108,11 @@ button_set: if (clip_star.state == SELECT_IN_PROGRESS) { clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), repeated_click); - return; + + // A release event may still need to be sent if the position is equal. + row = gui_xy2colrow(x, y, &col); + if (button != MOUSE_RELEASE || row != prev_row || col != prev_col) + return; } // Determine which mouse settings to look for based on the current mode