From d829af786ee7c76989a1105919b788fb7d07817f Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Wed, 4 Jun 2014 12:55:18 -0700 Subject: [PATCH] Assume all motion events are mouse events unless tool_type states otherwise. --- src/video/mir/SDL_mirevents.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/mir/SDL_mirevents.c b/src/video/mir/SDL_mirevents.c index 208431dd0de4b..b5829c7c792a8 100644 --- a/src/video/mir/SDL_mirevents.c +++ b/src/video/mir/SDL_mirevents.c @@ -224,12 +224,12 @@ HandleMotionEvent(MirMotionEvent const motion, SDL_Window* sdl_window) { int cord_index; for (cord_index = 0; cord_index < motion.pointer_count; cord_index++) { - if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_mouse) { - HandleMouseEvent(motion, cord_index, sdl_window); - } - else if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) { + if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) { HandleTouchEvent(motion, cord_index, sdl_window); } + else { + HandleMouseEvent(motion, cord_index, sdl_window); + } } }