ecore-wl2: Add internal input functions to initiate/release a grab

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-23 10:23:42 -04:00
parent 31b014de6b
commit 22c069ef82
1 changed files with 19 additions and 0 deletions

View File

@ -578,6 +578,25 @@ static const struct wl_seat_listener _seat_listener =
NULL
};
static void
_ecore_wl2_input_grab(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, unsigned int button)
{
input->grab.window = window;
input->grab.button = button;
}
static void
_ecore_wl2_input_ungrab(Ecore_Wl2_Input *input)
{
if ((input->grab.window) && (input->grab.button))
{
/* TODO: send a mouse up here */
}
input->grab.window = NULL;
input->grab.button = 0;
}
static void
_ecore_wl2_input_cursor_setup(Ecore_Wl2_Input *input)
{