Merge branch 'master' into blender2.8
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index 1e3a08bdcbc0e33a5af51ec51d9690ea28c88c44..ffef33d344ab9db9131aefe221f95901da17bd23 100644 (file)
@@ -2549,7 +2549,7 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
                        }
                }
        }
-       else if (ISMOUSE(event->type) || ISKEYBOARD(event->type)) {
+       else if (ISMOUSE_BUTTON(event->type) || ISKEYBOARD(event->type)) {
                /* All events that don't set wmEvent.prevtype must be ignored. */
 
                /* test for CLICK events */