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>2012-10-23 17:29:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-23 17:29:56 +0400
commitda9f9c27bc35f032f283cefc51e9055e761212b9 (patch)
treeb90f57328990402c87628aa4513c1f3142d428f4 /source/blender/windowmanager/intern
parentf70d2c65d85c6ad983b9155daedb0dff0c085e90 (diff)
debug output: stop printing event handlers for mouse moves of mouse inbetween events.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index e17f70eeca4..a0090166840 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1675,7 +1675,10 @@ static int wm_action_not_handled(int action)
static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
{
#ifndef NDEBUG
- const int do_debug_handler = (G.debug & G_DEBUG_EVENTS);
+ const int do_debug_handler = (G.debug & G_DEBUG_EVENTS)
+ /* comment this out to flood the console! (if you really want to test) */
+ && !ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)
+ ;
#endif
wmWindowManager *wm = CTX_wm_manager(C);
wmEventHandler *handler, *nexthandler;
@@ -1690,10 +1693,8 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
if (do_debug_handler) {
/* in rare cases you may want to comment this out for testing,
* but mostly this is just annoying */
- if (!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
- printf("%s: handling event\n", __func__);
- WM_event_print(event);
- }
+ printf("%s: handling event\n", __func__);
+ WM_event_print(event);
}
#endif