diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-18 21:33:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-18 21:33:22 +0100 |
commit | 0ce3733f7845013a66d90b193084a3664ad7ff99 (patch) | |
tree | d1c083c401d6d84b1f41a6f0ff3d36f9453b1869 /src/gui.c | |
parent | bc28e9f15bed94a7680a6bb84690965049da12d8 (diff) | |
download | vim-git-0ce3733f7845013a66d90b193084a3664ad7ff99.tar.gz |
patch 8.2.0022: click in popup window doesn't close it in the GUIv8.2.0022
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)
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |