Revert "Add a api to send key to focus client" 28/67428/1
authorJengHyun Kang <jhyuni.kang@samsung.com>
Tue, 26 Apr 2016 11:33:41 +0000 (20:33 +0900)
committerJengHyun Kang <jhyuni.kang@samsung.com>
Tue, 26 Apr 2016 11:35:42 +0000 (20:35 +0900)
This reverts commit f362c0d81fc15d51fe25bc285ea16057ae486d76.

Change-Id: I2be797cfe3a9e3a7fc3126f86e9897f38ef97f44

src/bin/e_comp_wl.c

index cd5359d3f3886fcd6f198138c289486f4a9a93e1..061d22944ffec3149869470a8bcbb195c6f5da55 100644 (file)
@@ -4737,31 +4737,6 @@ e_comp_wl_output_remove(const char *id)
      }
 }
 
-EAPI void
-e_comp_wl_key_send_to_focus(int keycode, int timestamp, Eina_Bool pressed)
-{
-   E_Client *ec = NULL;
-   int serial;
-
-   if (!e_comp) return;
-   if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return;
-   if (!(e_comp_wl = e_comp->wl_comp_data)) return;
-
-   ec = e_client_focused_get();
-   if (ec && ec->comp_data->surface && e_comp_wl->kbd.focused)
-     {
-        struct wl_resource *res;
-        Eina_List *l;
-
-        serial = wl_display_next_serial(e_comp_wl->wl.disp);
-        EINA_LIST_FOREACH(e_comp_wl->kbd.focused, l, res)
-          {
-             wl_keyboard_send_key(res, serial, timestamp, keycode,
-                                  pressed ? WL_KEYBOARD_KEY_STATE_PRESSED : WL_KEYBOARD_KEY_STATE_RELEASED);
-          }
-     }
-}
-
 EINTERN Eina_Bool
 e_comp_wl_key_down(Ecore_Event_Key *ev)
 {