forked from enlightenment/efl
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:
parent
6d7a73c68f
commit
fb082484b0
|
@ -463,12 +463,12 @@ ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types)
|
||||||
EAPI uint32_t
|
EAPI uint32_t
|
||||||
ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window)
|
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, 0);
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(input->data.drag.source, 0);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(input->data.drag.source, 0);
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(drag_window, 0);
|
|
||||||
|
|
||||||
|
if (drag_window)
|
||||||
dsurface = ecore_wl2_window_surface_get(drag_window);
|
dsurface = ecore_wl2_window_surface_get(drag_window);
|
||||||
|
|
||||||
_ecore_wl2_input_ungrab(input);
|
_ecore_wl2_input_ungrab(input);
|
||||||
|
|
Loading…
Reference in New Issue