ecore-wl2: permit null drag icon window in ecore_wl2_dnd_drag_start()

this is explicitly allowed in the spec

@fix
This commit is contained in:
Mike Blumenkrantz 2017-05-19 15:53:15 -04:00
parent 6d7a73c68f
commit fb082484b0
1 changed files with 3 additions and 3 deletions

View File

@ -463,13 +463,13 @@ ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types)
EAPI uint32_t
ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window)
{
struct wl_surface *dsurface, *osurface;
struct wl_surface *dsurface = NULL, *osurface;
EINA_SAFETY_ON_NULL_RETURN_VAL(input, 0);
EINA_SAFETY_ON_NULL_RETURN_VAL(input->data.drag.source, 0);
EINA_SAFETY_ON_NULL_RETURN_VAL(drag_window, 0);
dsurface = ecore_wl2_window_surface_get(drag_window);
if (drag_window)
dsurface = ecore_wl2_window_surface_get(drag_window);
_ecore_wl2_input_ungrab(input);