ecore-wl2: Add API function to return a wl_seat from an Ecore_Wl2_Input

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-09 12:21:27 -04:00
parent 055b398e8d
commit 6d78355ccc
2 changed files with 11 additions and 0 deletions

View File

@ -574,6 +574,9 @@ EAPI Eina_Bool ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input);
/* TODO: doxy */
EAPI void ecore_wl2_input_ungrab(Ecore_Wl2_Input *input);
/* TODO: doxy */
EAPI struct wl_seat *ecore_wl2_input_seat_get(Ecore_Wl2_Input *input);
/**
* Create and return a new subsurface.
*

View File

@ -1343,3 +1343,11 @@ ecore_wl2_input_ungrab(Ecore_Wl2_Input *input)
_ecore_wl2_input_ungrab(input);
}
EAPI struct wl_seat *
ecore_wl2_input_seat_get(Ecore_Wl2_Input *input)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(input, NULL);
return input->wl.seat;
}