Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-05-26 12:57:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-26 13:07:58 +0300
commit718bc078a8dfb10b24fc2b78f5052e4aa56fc6e3 (patch)
tree87fc874804970e860a96db418408cc3125454bca /source/blender/windowmanager/WM_api.h
parentde68066c1ccfbdd3d9f185164e728677c91874ec (diff)
Fix T44740: Tweak events stuck (ignored release)
Tweak event was being added to the end of the event queue (out of order), meaning any mouse releases already in the queue wouldn't be used to exit the gesture. Gestures could get stuck (mostly when the system wasn't able to handle events fast enough). Now tweak events are now added in order.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 2131d5aae4a..5491769fac2 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -182,8 +182,15 @@ void WM_report_banner_show(const struct bContext *C);
void WM_report(const struct bContext *C, ReportType type, const char *message);
void WM_reportf(const struct bContext *C, ReportType type, const char *format, ...) ATTR_PRINTF_FORMAT(3, 4);
-void wm_event_add(struct wmWindow *win, const struct wmEvent *event_to_add);
-void wm_event_init_from_window(struct wmWindow *win, struct wmEvent *event);
+void wm_event_add_ex(
+ struct wmWindow *win, const struct wmEvent *event_to_add,
+ const struct wmEvent *event_to_add_after)
+ ATTR_NONNULL(1, 2);
+void wm_event_add(
+ struct wmWindow *win, const struct wmEvent *event_to_add)
+ ATTR_NONNULL(1, 2);
+
+void wm_event_init_from_window(struct wmWindow *win, struct wmEvent *event);
/* at maximum, every timestep seconds it triggers event_type events */