From fb082484b0dd66568ffc522997371d4b7fa0431d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 19 May 2017 15:53:15 -0400 Subject: [PATCH] ecore-wl2: permit null drag icon window in ecore_wl2_dnd_drag_start() this is explicitly allowed in the spec @fix --- src/lib/ecore_wl2/ecore_wl2_dnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c b/src/lib/ecore_wl2/ecore_wl2_dnd.c index 9196c10cf7..f0376cb0df 100644 --- a/src/lib/ecore_wl2/ecore_wl2_dnd.c +++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c @@ -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);