ecore-wl2: Send mouse up event when we ungrab input
authorChris Michael <cp.michael@samsung.com>
Wed, 23 Sep 2015 15:46:58 +0000 (11:46 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_input.c

index adeddbe..b8d0f0d 100644 (file)
@@ -225,9 +225,8 @@ static void
 _ecore_wl2_input_ungrab(Ecore_Wl2_Input *input)
 {
    if ((input->grab.window) && (input->grab.button))
-     {
-        /* TODO: send a mouse up here */
-     }
+     _ecore_wl2_input_mouse_up_send(input, input->grab.window, 0,
+                                    input->grab.button, input->grab.timestamp);
 
    input->grab.window = NULL;
    input->grab.button = 0;