Fix T44747: Drag toggle /w nodes (glitch)

It was possible to perform actions while performing a drag-toggle.
This commit is contained in:
2015-06-01 16:40:43 +10:00
parent 565faadd8e
commit bfa7586ba3
7 changed files with 35 additions and 31 deletions

View File

@@ -45,8 +45,8 @@ struct ARegion;
typedef struct wmEventHandler {
struct wmEventHandler *next, *prev;
int type; /* WM_HANDLER_DEFAULT, ... */
int flag; /* WM_HANDLER_BLOCKING, ... */
char type; /* WM_HANDLER_DEFAULT, ... */
char flag; /* WM_HANDLER_BLOCKING, ... */
/* keymap handler */
wmKeyMap *keymap; /* pointer to builtin/custom keymaps */
@@ -77,13 +77,6 @@ enum {
WM_HANDLER_FILESELECT
};
/* handler flag */
enum {
WM_HANDLER_BLOCKING = (1 << 0), /* after this handler all others are ignored */
WM_HANDLER_DO_FREE = (1 << 1), /* handler tagged to be freed in wm_handlers_do() */
WM_HANDLER_ACCEPT_DBL_CLICK = (1 << 2), /* handler accepts double key press events */
};
/* wm_event_system.c */
void wm_event_free_all (wmWindow *win);
void wm_event_free (wmEvent *event);