From: duna.oh Date: Wed, 11 Dec 2024 08:33:00 +0000 (+0900) Subject: input: bump wl_seat version to 6 and wayland minimum version to 1.17 X-Git-Tag: accepted/tizen/unified/20241216.185842~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0aeaaa5c9c29f9dcd157e289b8643ce501f3ecaa;p=platform%2Fupstream%2Fenlightenment.git input: bump wl_seat version to 6 and wayland minimum version to 1.17 In version 5, wl_pointer events are added. ex.frame, axis_source, etc. and wl_seat' destructor request are added. In version 6, wl_touch events are added. ex. shape, orientation. To support version 5 and 6, E20 simply adds a callback of new request. (dont' have to send new events) We require wayland-server >= 1.17 to support wl_seat version 7 as well. Change-Id: Ieec5ae2d1ebe401aaae1d573a9b59275a8a714fb --- diff --git a/configure.ac b/configure.ac index 405c6b9e08..5e00207e37 100755 --- a/configure.ac +++ b/configure.ac @@ -386,7 +386,7 @@ AC_MSG_RESULT([${have_shm_open}]) AC_SUBST(SHM_OPEN_LIBS) if test "x${e_cv_want_wayland_only}" != "xno" || test "x${e_cv_want_wayland_clients}" != "xno";then - PKG_CHECK_MODULES([WAYLAND], [wayland-server >= 1.8.0 xkbcommon uuid xdg-shell-unstable-v5-server xdg-shell-unstable-v6-server + PKG_CHECK_MODULES([WAYLAND], [wayland-server >= 1.17.0 xkbcommon uuid xdg-shell-unstable-v5-server xdg-shell-unstable-v6-server tizen-remote-surface-server scaler-server screenshooter-server tizen-extension-server tizen-launch-server tizen-surface-server tizen-dpms-server eom-server presentation-time-server tizen-hwc-server linux-explicit-synchronization-unstable-v1-server wtz-foreign-server diff --git a/src/bin/server/e_comp_wl_input.c b/src/bin/server/e_comp_wl_input.c index c8580d8e43..beb4ff1d73 100644 --- a/src/bin/server/e_comp_wl_input.c +++ b/src/bin/server/e_comp_wl_input.c @@ -586,6 +586,7 @@ static const struct wl_seat_interface _e_seat_interface = _e_comp_wl_input_cb_pointer_get, _e_comp_wl_input_cb_keyboard_get, _e_comp_wl_input_cb_touch_get, + _e_comp_wl_input_cb_resource_destroy, //since version 5 }; static void @@ -1694,7 +1695,7 @@ e_comp_wl_input_init(void) /* create the global resource for input seat */ comp_wl->seat.global = - wl_global_create(comp_wl->wl.disp, &wl_seat_interface, 4, + wl_global_create(comp_wl->wl.disp, &wl_seat_interface, 6, comp_wl, _e_comp_wl_input_cb_bind_seat); if (!comp_wl->seat.global) {