don't print mousemoves with wm_handlers_do and --debug-events

This commit is contained in:
Campbell Barton 2012-10-20 16:04:15 +00:00
parent 73b79a6763
commit 29392dc2b4
1 changed files with 6 additions and 2 deletions

View File

@ -1688,8 +1688,12 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
#ifndef NDEBUG
if (do_debug_handler) {
printf("%s: handling event\n", __func__);
WM_event_print(event);
/* 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);
}
}
#endif