e_devicemgr: create tizen_input_devices only for first bound seat & manager 40/284140/1
authorduna.oh <duna.oh@samsung.com>
Thu, 10 Nov 2022 05:34:33 +0000 (14:34 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 10 Nov 2022 09:43:41 +0000 (18:43 +0900)
commit3cf250b83cc3d2038304045433aae23cad7b44fc
tree226fd6839baa83fa849a26019e794ec3ac2ae9b5
parentc9e4d9bba2b764c0cd40618df72ee66c56af8e28
e_devicemgr: create tizen_input_devices only for first bound seat & manager

If a wayland_client uses ecore_wl library and efl_util API,
it binds two pairs of wl_seat & tizen_input_device_manager.

ecore_wl listens wayland events (ex. device_add/device_remove) and send
requests properly. (ex. tizen_input_device_release)

However efl_util dispatches event queue only when efl_util API is called.
It doesn't send tizen_input_device_release requests and causes resource leaks.

To fix this resource leak,
this patch is to create tizen_input_device resources only for
the first bound wl_seat & first bound tizen_input_devcie_manager
which ecore_wl binds.
efl_util always binds wl_globals after ecore_wl2 binds ones.

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