diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-30 18:07:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-30 18:07:00 +0200 |
commit | 2e62b568e91c36adb16dbcc609665170f09f3845 (patch) | |
tree | fef2344429e26ba99e52315b28fc979477e23d7b /src/structs.h | |
parent | b60d8514b8813e2f3acefd454efcccbe04ac135a (diff) |
patch 8.1.1609: the user cannot easily close a popup windowv8.1.1609
Problem: The user cannot easily close a popup window.
Solution: Add the "close" property. (mostly by Masato Nishihata,
closes #4601)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 208a11ece6..b579de3f5c 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1996,6 +1996,12 @@ typedef enum { POPPOS_CENTER } poppos_T; +typedef enum { + POPCLOSE_NONE, + POPCLOSE_BUTTON, + POPCLOSE_CLICK +} popclose_T; + # define POPUPWIN_DEFAULT_ZINDEX 50 # define POPUPMENU_ZINDEX 100 # define POPUPWIN_DIALOG_ZINDEX 200 @@ -2920,6 +2926,7 @@ struct window_S colnr_T w_popup_mincol; // close popup if cursor before this col colnr_T w_popup_maxcol; // close popup if cursor after this col int w_popup_drag; // allow moving the popup with the mouse + popclose_T w_popup_close; // allow closing the popup with the mouse list_T *w_popup_mask; // list of lists for "mask" # if defined(FEAT_TIMERS) |