KLINF("Delete %d and %d key composition.\n", keys[0], keys[1]);
}
-EINTERN void
-e_keyrouter_event_surface_send(E_Client *ec, int key)
-{
- struct wl_resource *surface = NULL;
- EINA_SAFETY_ON_NULL_RETURN(krt);
- EINA_SAFETY_ON_NULL_RETURN(ec);
- EINA_SAFETY_ON_NULL_RETURN(ec->comp_data);
-
- surface = e_comp_wl_client_surface_get(ec);
- EINA_SAFETY_ON_NULL_RETURN(surface);
- key = key - 8;
-
- e_comp_wl_connection_lock();
- e_keyrouter_wl_event_surface_send(surface, key, TIZEN_KEYROUTER_MODE_NONE);
- e_comp_wl_connection_unlock();
-}
-
EINTERN void
e_keyrouter_input_handler_add(void)
{
EINTERN int e_keyrouter_composition_key_add(int *keys, int count);
EINTERN void e_keyrouter_composition_key_del(int *keys, int count);
-EINTERN void e_keyrouter_event_surface_send(E_Client *ec, int key);
-
EINTERN void e_keyrouter_input_handler_add(void);
EINTERN Eina_Bool e_keyrouter_query_tizen_key_table(void);
#include "e_comp_wl_viewport_intern.h"
#include "e_comp_intern.h"
#include "e_input_backend_intern.h"
-#include "e_keyrouter_intern.h"
+#include "e_keyrouter_wl_intern.h"
#include "e_error_intern.h"
#include "e_pointer_intern.h"
#include "e_presentation_time_intern.h"
else state = WL_KEYBOARD_KEY_STATE_RELEASED;
comp_conf = e_comp_config_get();
- e_keyrouter_event_surface_send(ec, keycode);
+
+ e_comp_wl_connection_lock();
+ e_keyrouter_wl_event_surface_send(surface, wl_keycode, TIZEN_KEYROUTER_MODE_NONE);
+ e_comp_wl_connection_unlock();
if (e_config->key_input_ttrace_enable)
{
if (!time) time = e_util_timestamp_get();
comp_conf = e_comp_config_get();
- e_keyrouter_event_surface_send(ec, keycode);
+
+ e_comp_wl_connection_lock();
+ e_keyrouter_wl_event_surface_send(surface, wl_keycode, TIZEN_KEYROUTER_MODE_NONE);
+ e_comp_wl_connection_unlock();
EINA_LIST_FOREACH(e_comp_input_key->kbd.resources, l, res)
{