forked from enlightenment/efl
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:
parent
31b014de6b
commit
22c069ef82
|
@ -578,6 +578,25 @@ static const struct wl_seat_listener _seat_listener =
|
||||||
NULL
|
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
|
static void
|
||||||
_ecore_wl2_input_cursor_setup(Ecore_Wl2_Input *input)
|
_ecore_wl2_input_cursor_setup(Ecore_Wl2_Input *input)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue