NULL, _e_comp_wl_input_cb_unbind_relative_pointer_manager);
}
+void
+_e_comp_wl_input_relative_motion_handler(double dx[2], double dy[2], uint64_t time_us)
+{
+ Eina_Bool res;
+ res = e_comp_wl_mouse_relative_motion_send(e_comp_wl->ptr_constraints.ec,
+ (int)dx[0], (int)dy[0], (int)dx[1], (int)dy[1], time_us);
+
+ if (!res)
+ {
+ ERR("Could not send relative_motion to ec(%p)", e_comp_wl->ptr_constraints.ec);
+ }
+}
+
static void
_e_comp_wl_input_convert_eina_tiler_to_pixman_region32(const Eina_Tiler *tiler,
pixman_region32_t *region)
e_comp_wl->ptr_constraints.ec = NULL;
e_comp_wl->relative_ptr.activated = EINA_FALSE;
e_comp_wl->relative_ptr.ec = NULL;
+ e_input_relative_motion_handler_set(NULL);
_e_comp_wl_input_pointer_constraint_notify_deactivated(constraint);
wl_list_remove(&constraint->surface_unmap_listener.link);
wl_list_init(&constraint->surface_unmap_listener.link);
_e_comp_wl_input_pointer_constraint_notify_activated(constraint);
wl_signal_add(&e_comp_wl->ptr_constraints.surface_unmap_signal,
&constraint->surface_unmap_listener);
+ if (!e_input_relative_motion_handler_set(_e_comp_wl_input_relative_motion_handler))
+ ERR("ERROR! Could not set relative motion handler !");
}
static void