/* The cursor on the surface is undefined until we set it */
ecore_wl_input_cursor_from_name_set(input, "left_ptr");
- if ((win = wl_surface_get_user_data(surface)))
+ if ((win = ecore_wl_window_surface_find(surface)))
{
win->pointer_device = input;
input->pointer_focus = win;
input->display->serial = serial;
if (!surface) return;
- if (!(win = wl_surface_get_user_data(surface))) return;
+ if (!(win = ecore_wl_window_surface_find(surface))) return;
win->pointer_device = NULL;
input->pointer_focus = NULL;
input->display->serial = serial;
- if (!(win = wl_surface_get_user_data(surface))) return;
+ if (!(win = ecore_wl_window_surface_find(surface))) return;
win->keyboard_device = input;
input->keyboard_focus = win;
input->display->serial = serial;
if (!surface) return;
- if (!(win = wl_surface_get_user_data(surface))) return;
+ if (!(win = ecore_wl_window_surface_find(surface))) return;
win->keyboard_device = NULL;
_ecore_wl_input_focus_out_send(input, win, input->timestamp);