0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2019-12-18 21:33:22 +01:00
parent bc28e9f15b
commit 0ce3733f78
2 changed files with 7 additions and 1 deletions

View File

@ -3108,6 +3108,10 @@ button_set:
if (clip_star.state == SELECT_IN_PROGRESS)
{
clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), repeated_click);
// 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;
}

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
22,
/**/
21,
/**/