static void _ecore_wl_signal_exit(void);
static void _ecore_wl_signal_exit_free(void *data EINA_UNUSED, void *event);
static void _ecore_wl_init_callback(void *data, struct wl_callback *callback, uint32_t serial EINA_UNUSED);
-static void _ecore_wl_cb_keygrab_notify(void *data, struct wl_keyrouter *wl_keyrouter, struct wl_surface *surface, uint32_t key, uint32_t mode, uint32_t error);
+static void _ecore_wl_cb_keygrab_notify(void *data, struct tizen_keyrouter *tizen_keyrouter, struct wl_surface *surface, uint32_t key, uint32_t mode, uint32_t error);
static void _ecore_wl_cb_conformant(void *data EINA_UNUSED, struct tizen_policy *tizen_policy EINA_UNUSED, struct wl_surface *surface_resource, uint32_t is_conformant);
static void _ecore_wl_cb_conformant_area(void *data EINA_UNUSED, struct tizen_policy *tizen_policy EINA_UNUSED, struct wl_surface *surface_resource, uint32_t conformant_part, uint32_t state, int32_t x, int32_t y, int32_t w, int32_t h);
static void _ecore_wl_cb_notification_done(void *data, struct tizen_policy *tizen_policy, struct wl_surface *surface, int32_t level, uint32_t state);
_ecore_wl_animator_callback
};
-static const struct wl_keyrouter_listener _ecore_wl_keyrouter_listener =
+static const struct tizen_keyrouter_listener _ecore_tizen_keyrouter_listener =
{
_ecore_wl_cb_keygrab_notify
};
if (_ecore_wl_disp->wl.subcompositor)
wl_subcompositor_destroy(_ecore_wl_disp->wl.subcompositor);
if (_ecore_wl_disp->wl.keyrouter)
- wl_keyrouter_destroy(_ecore_wl_disp->wl.keyrouter);
+ tizen_keyrouter_destroy(_ecore_wl_disp->wl.keyrouter);
if (_ecore_wl_disp->wl.display)
{
wl_registry_destroy(_ecore_wl_disp->wl.registry);
ewd->wl.tz_surf =
wl_registry_bind(registry, id, &tizen_surface_interface, 1);
}
- else if (!strcmp(interface, "wl_keyrouter"))
+ else if (!strcmp(interface, "tizen_keyrouter"))
{
ewd->wl.keyrouter =
- wl_registry_bind(registry, id, &wl_keyrouter_interface, 1);
+ wl_registry_bind(registry, id, &tizen_keyrouter_interface, 1);
if (ewd->wl.keyrouter)
- wl_keyrouter_add_listener(_ecore_wl_disp->wl.keyrouter, &_ecore_wl_keyrouter_listener, ewd->wl.display);
+ tizen_keyrouter_add_listener(_ecore_wl_disp->wl.keyrouter, &_ecore_tizen_keyrouter_listener, ewd->wl.display);
}
if ((ewd->wl.compositor) && (ewd->wl.shm) &&
//Currently this function is only used in sink call, so use global value(_ecore_wl_keygrab_error) and just check the error is ok.
static void
-_ecore_wl_cb_keygrab_notify(void *data EINA_UNUSED, struct wl_keyrouter *wl_keyrouter EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t key, uint32_t mode, uint32_t error)
+_ecore_wl_cb_keygrab_notify(void *data EINA_UNUSED, struct tizen_keyrouter *tizen_keyrouter EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t key, uint32_t mode, uint32_t error)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
surface = ecore_wl_window_surface_get(win);
INF("Before keygrab _ecore_wl_keygrab_error = %d", _ecore_wl_keygrab_error);
- wl_keyrouter_set_keygrab(_ecore_wl_disp->wl.keyrouter, surface, keycode, grab_mode);
+ tizen_keyrouter_set_keygrab(_ecore_wl_disp->wl.keyrouter, surface, keycode, grab_mode);
/* Send sync to wayland compositor and register sync callback to exit while dispatch loop below */
ecore_wl_sync();
INF("Before keyungrab _ecore_wl_keygrab_error = %d", _ecore_wl_keygrab_error);
- wl_keyrouter_unset_keygrab(_ecore_wl_disp->wl.keyrouter, surface, keycode);
+ tizen_keyrouter_unset_keygrab(_ecore_wl_disp->wl.keyrouter, surface, keycode);
/* Send sync to wayland compositor and register sync callback to exit while dispatch loop below */
ecore_wl_sync();