forked from enlightenment/efl
ecore_wl2: Don't crash when drag and drop is unsupported by compositor
Check for presence of data device manager so we don't crash if it's not there.
This commit is contained in:
parent
b780cf2af2
commit
f45b63edbd
|
@ -377,6 +377,7 @@ ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types)
|
||||||
EINA_SAFETY_ON_NULL_RETURN(input->display);
|
EINA_SAFETY_ON_NULL_RETURN(input->display);
|
||||||
|
|
||||||
manager = input->display->wl.data_device_manager;
|
manager = input->display->wl.data_device_manager;
|
||||||
|
if (!manager) return EINA_FALSE;
|
||||||
|
|
||||||
if (input->data.types.data)
|
if (input->data.types.data)
|
||||||
{
|
{
|
||||||
|
@ -485,6 +486,7 @@ ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **types)
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(input->display, EINA_FALSE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(input->display, EINA_FALSE);
|
||||||
|
|
||||||
manager = input->display->wl.data_device_manager;
|
manager = input->display->wl.data_device_manager;
|
||||||
|
if (!manager) return EINA_FALSE;
|
||||||
|
|
||||||
if (input->data.types.data)
|
if (input->data.types.data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue