e_devicemgr: create new tizen_input_device resources for every seat & manager 51/317851/1
authorduna.oh <duna.oh@samsung.com>
Fri, 15 Dec 2023 10:48:07 +0000 (19:48 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 19 Sep 2024 09:56:04 +0000 (18:56 +0900)
commit3f2bfe7f268fb6faba20abbf0fa4c788a73ee14e
tree15700f123ea661f7b4cd41baccca37290c2e892d
parentd05eef56d7c5026889df3eeba8ff1eba05d28152
e_devicemgr: create new tizen_input_device resources for every seat & manager

The commit '3cf250' was a workaround to fix memory leaks
not destroying tizen_input_device resources.
However, it also caused that second bound wl_seat (ex.efl_util) coundln't get
events of tizen_input_device_manager.

Also, since the memory leak issue was fixed by the commit '889ae7',
we don't need the workaround.

Please refer to following commits.

commit 3cf250b83cc3d2038304045433aae23cad7b44fc
Author: duna.oh <duna.oh@samsung.com>
Date:   Thu Nov 10 14:34:33 2022 +0900

    e_devicemgr: create tizen_input_devices only for first bound seat & manager

commit 889ae7c41049cc2b7d7e598e2814ba7e551127e9
Author: duna.oh <duna.oh@samsung.com>
Date:   Fri Nov 4 19:15:47 2022 +0900

    e_devicemgr: add data struct for tizen_input_device_manager

    E_Devicemgr_Input_Device_Mgr_Data is a data for tizen_input_device_manager.
    This has a Eina_List of E_Device_Input_Device_User_Data and manager's resource.
    When a client unbinds tizen_input_device_manager, mgr_data iterates a list
    of device_user_data and cleans up device's resource.

Change-Id: Ic3e0a898c07fc7c595233cabbb9ad4d6d6d5964c
src/bin/e_comp_wl_input.c
src/bin/e_devicemgr_private.h
src/bin/e_devicemgr_wl.c