Revert "efl_util.c add wl_seat" 69/292269/1
authorduna.oh <duna.oh@samsung.com>
Wed, 3 May 2023 00:50:21 +0000 (09:50 +0900)
committerduna.oh <duna.oh@samsung.com>
Wed, 3 May 2023 00:58:58 +0000 (09:58 +0900)
This reverts commit 5c722ad18d2d3333d81c04201b08e5c80968df00.

efl_util_input_initialize_generator_with_sync() API no longer listens to
device_add/remove events which needed efl-util to be bound to 'wl_seat'.
(refer to commit ba07e0cf4ecaad20bc26812c635e6e4f72d47f61)

Change-Id: Ie6b1c66dbe2f4ce1a80143ecf52b8f527e72dc46

src/efl_util.c

index 6eec154..d2dbca4 100644 (file)
@@ -163,7 +163,6 @@ typedef struct _Efl_Util_Data
          int max_touch_count;
          int request_touch_count;
       } devmgr;
-      struct wl_seat *seat;
       struct
       {
          unsigned int id;
@@ -201,7 +200,6 @@ static Efl_Util_Data _eflutil =
       { 0, NULL, NULL, NULL }, /* tizen_policy protocol */
       { NULL, NULL, NULL, NULL, 0 }, /* screenshooter protocol */
       { NULL, -1, NULL, NULL, NULL, 0, 0 }, /* tizen_input_device_manager protocol */
-      NULL, /* wl_seat protocol */
       { 0, NULL, NULL } /* display_policy protocol */
    },
 };
@@ -464,22 +462,6 @@ static const struct tizen_screenshooter_listener tz_screenshooter_listener =
 };
 
 static void
-_cb_seat_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability caps)
-{
-}
-
-static void
-_cb_seat_name(void *data, struct wl_seat *seat EINA_UNUSED, const char *name)
-{
-}
-
-static const struct wl_seat_listener _seat_listener =
-{
-   _cb_seat_capabilities,
-   _cb_seat_name,
-};
-
-static void
 _cb_wl_reg_global(void *data,
                   struct wl_registry *reg,
                   unsigned int id,
@@ -514,11 +496,6 @@ _cb_wl_reg_global(void *data,
         output->output = wl_registry_bind(reg, id, &wl_output_interface, version);
         wl_output_add_listener(output->output, &output_listener, output);
      }
-   else if(strcmp(interface, "wl_seat") == 0)
-     {
-        _eflutil.wl.seat = wl_registry_bind(reg, id, &wl_seat_interface, version);
-        wl_seat_add_listener(_eflutil.wl.seat, &_seat_listener, NULL);
-     }
    else if (strcmp(interface, "tizen_input_device_manager") == 0)
      {
         _eflutil.wl.devmgr.devicemgr = wl_registry_bind(reg, id, &tizen_input_device_manager_interface, version);