}
g_rec_mutex_unlock(&krt->grab_key_mutex);
- // Top position grab must need a focus surface.
- if (surface_focus)
+ // Top position grab must need a focus client.
+ if (ec_focus)
{
g_rec_mutex_lock(&krt->grab_key_mutex);
Eina_List *top_ptr_list = krt->HardKeys[keycode].top_ptr;
{
if (key_node_data)
{
- if ((EINA_FALSE == krt->isWindowStackChanged) && (surface_focus == key_node_data->surface))
+ if ((EINA_FALSE == krt->isWindowStackChanged) &&
+ (surface_focus && surface_focus == key_node_data->surface))
{
pid = e_keyrouter_util_get_pid(key_node_data->wc, key_node_data->surface);
cmd = e_keyrouter_util_cmd_get_from_pid(pid);
_e_keyrouter_send_key_event(type, key_node_data->surface, NULL, ev, dev, key_node_data->focused,
TIZEN_KEYROUTER_MODE_TOPMOST);
- KLINF("TOPMOST (TOP_POSITION) : %s (%s:%d) => wl_surface (%p) (pid: %d) (pname: %s)",
+ KLINF("TOPMOST (TOP & FOCUS) : %s (%s:%d) => wl_surface (%p) (pid: %d) (pname: %s)",
((ECORE_EVENT_KEY_DOWN == type) ? "Down" : "Up"), ev->keyname, ev->keycode,
key_node_data->surface, pid, pname ?: "Unknown");