comparison src/gui.c @ 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 79e10adc821d
children 5c405689da3e
comparison
equal deleted inserted replaced
18921:0be724789d54 18922:23f68e3cb66e
3106 #ifdef FEAT_CLIPBOARD 3106 #ifdef FEAT_CLIPBOARD
3107 // If a clipboard selection is in progress, handle it 3107 // If a clipboard selection is in progress, handle it
3108 if (clip_star.state == SELECT_IN_PROGRESS) 3108 if (clip_star.state == SELECT_IN_PROGRESS)
3109 { 3109 {
3110 clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), repeated_click); 3110 clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), repeated_click);
3111 return; 3111
3112 // A release event may still need to be sent if the position is equal.
3113 row = gui_xy2colrow(x, y, &col);
3114 if (button != MOUSE_RELEASE || row != prev_row || col != prev_col)
3115 return;
3112 } 3116 }
3113 3117
3114 // Determine which mouse settings to look for based on the current mode 3118 // Determine which mouse settings to look for based on the current mode
3115 switch (get_real_state()) 3119 switch (get_real_state())
3116 { 3120 {