0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3697: cannot drag a popup without a border

Problem:    Cannot drag a popup without a border.
Solution:   Add the "dragall" option. (closes #9218)
This commit is contained in:
Bram Moolenaar
2021-11-29 17:38:02 +00:00
parent 7f2c341664
commit 0b74d00693
8 changed files with 70 additions and 18 deletions

View File

@@ -1636,8 +1636,9 @@ retnomove:
{
return IN_UNKNOWN;
}
else if ((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE))
else if (((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE))
&& popup_on_border(wp, row, col))
|| (wp->w_popup_flags & POPF_DRAGALL))
{
popup_dragwin = wp;
popup_start_drag(wp, row, col);