forked from enlightenment/efl
During ecore_wl_window_pointer_set (called from
ecore_evas_object_cursor_set), assign the pointer properties to the window structure so they can be applied on pointer_enter events. NB: Phab T230 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
f0289a1936
commit
8f11c31396
|
@ -564,6 +564,11 @@ ecore_wl_window_pointer_set(Ecore_Wl_Window *win, struct wl_surface *surface, in
|
|||
|
||||
if (!win) return;
|
||||
|
||||
win->pointer.surface = surface;
|
||||
win->pointer.hot_x = hot_x;
|
||||
win->pointer.hot_y = hot_y;
|
||||
win->pointer.set = EINA_TRUE;
|
||||
|
||||
if ((input = win->pointer_device))
|
||||
ecore_wl_input_pointer_set(input, surface, hot_x, hot_y);
|
||||
}
|
||||
|
@ -577,6 +582,8 @@ ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char *cursor_na
|
|||
|
||||
if (!win) return;
|
||||
|
||||
win->pointer.set = EINA_FALSE;
|
||||
|
||||
if ((input = win->pointer_device))
|
||||
ecore_wl_input_cursor_from_name_set(input, cursor_name);
|
||||
}
|
||||
|
@ -590,6 +597,8 @@ ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win)
|
|||
|
||||
if (!win) return;
|
||||
|
||||
win->pointer.set = EINA_FALSE;
|
||||
|
||||
if ((input = win->pointer_device))
|
||||
ecore_wl_input_cursor_default_restore(input);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue