comparison src/ui.c @ 17580:d5e5d0fc3fa8 v8.1.1787

patch 8.1.1787: cannot resize a popup window commit https://github.com/vim/vim/commit/9bcb70c18a740bf9d97a1420df5964618f218a89 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 1 21:11:05 2019 +0200 patch 8.1.1787: cannot resize a popup window Problem: Cannot resize a popup window. Solution: Allow for resizing by dragging the lower right corncer.
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Aug 2019 21:15:07 +0200
parents 696030820746
children 10696f279e20
comparison
equal deleted inserted replaced
17579:8c91fe192c56 17580:d5e5d0fc3fa8
3065 && popup_on_X_button(wp, row, col)) 3065 && popup_on_X_button(wp, row, col))
3066 { 3066 {
3067 popup_close_for_mouse_click(wp); 3067 popup_close_for_mouse_click(wp);
3068 return IN_UNKNOWN; 3068 return IN_UNKNOWN;
3069 } 3069 }
3070 else if (wp->w_popup_drag && popup_on_border(wp, row, col)) 3070 else if ((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE))
3071 && popup_on_border(wp, row, col))
3071 { 3072 {
3072 popup_dragwin = wp; 3073 popup_dragwin = wp;
3073 popup_start_drag(wp); 3074 popup_start_drag(wp, row, col);
3074 return IN_UNKNOWN; 3075 return IN_UNKNOWN;
3075 } 3076 }
3076 // Only close on release, otherwise it's not possible to drag or do 3077 // Only close on release, otherwise it's not possible to drag or do
3077 // modeless selection. 3078 // modeless selection.
3078 else if (wp->w_popup_close == POPCLOSE_CLICK 3079 else if (wp->w_popup_close == POPCLOSE_CLICK