forked from enlightenment/efl
ecore-wl2: Add API function to determine if an input has a selection
owner Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d1cc93f046
commit
4559aa15a4
|
@ -493,6 +493,9 @@ EAPI Eina_Bool ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type);
|
||||||
/* TODO: doxy */
|
/* TODO: doxy */
|
||||||
EAPI void ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input);
|
EAPI void ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input);
|
||||||
|
|
||||||
|
/* TODO: doxy */
|
||||||
|
EAPI Eina_Bool ecore_wl2_dnd_selection_owner_has(Ecore_Wl2_Input *input);
|
||||||
|
|
||||||
/* # ifdef __cplusplus */
|
/* # ifdef __cplusplus */
|
||||||
/* } */
|
/* } */
|
||||||
/* # endif */
|
/* # endif */
|
||||||
|
|
|
@ -308,3 +308,11 @@ ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input)
|
||||||
|
|
||||||
/* TODO: Raise dnd end event */
|
/* TODO: Raise dnd end event */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_wl2_dnd_selection_owner_has(Ecore_Wl2_Input *input)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(input, EINA_FALSE);
|
||||||
|
|
||||||
|
return (input->selection.source != NULL);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue