ecore-wayland: Don't set move cursor unless we actually start a drag
authorChris Michael <cp.michael@samsung.com>
Tue, 13 Jan 2015 16:23:27 +0000 (11:23 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 13 Jan 2015 16:23:27 +0000 (11:23 -0500)
Summary: We should not be setting a 'move' cursor unless we actually
make the call to start a drag

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wayland/ecore_wl_dnd.c

index 2174eed..11b889a 100644 (file)
@@ -247,10 +247,10 @@ ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Wi
         wl_data_device_start_drag(input->data_device, input->data_source, 
                                   origin_surface, drag_surface, 
                                   input->display->serial);
-     }
 
-   /* set pointer image */
-   ecore_wl_input_cursor_from_name_set(input, "move");
+        /* set pointer image */
+        ecore_wl_input_cursor_from_name_set(input, "move");
+     }
 
    /* NB: Below code disabled for now
     *