From 860006e082545a766dde222d6c8cb2754ff987f1 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 26 Mar 2018 14:45:52 +0200 Subject: [PATCH] Forward double-click events Double-clicks were not sent to the device anymore since the "double-click on black borders" feature. When a double click occurs inside the device screen, send the event to the device normally. Fixes . --- app/src/inputmanager.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/inputmanager.c b/app/src/inputmanager.c index 19830685..08b15a04 100644 --- a/app/src/inputmanager.c +++ b/app/src/inputmanager.c @@ -240,10 +240,11 @@ void input_manager_process_mouse_button(struct input_manager *input_manager, SDL_bool outside_device_screen = event->x < 0 || event->x >= input_manager->screen->frame_size.width || event->y < 0 || event->y >= input_manager->screen->frame_size.height; - if (outside_device_screen) { - screen_resize_to_fit(input_manager->screen); - } - return; + if (outside_device_screen) { + screen_resize_to_fit(input_manager->screen); + return; + } + // otherwise, send the click event to the device } }; struct control_event control_event;