From: Seunghun Lee Date: Mon, 11 Sep 2023 08:18:18 +0000 (+0900) Subject: xdg_shell_v6: Add APIs for some necessary signal listener X-Git-Tag: accepted/tizen/8.0/unified/20231005.094156~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04e920501bd49e88e05e087c700d4a06408819e1;p=platform%2Fcore%2Fuifw%2Flibds.git xdg_shell_v6: Add APIs for some necessary signal listener Change-Id: I75ec09f68882313877e954c015ad2c4ce3560a2b --- diff --git a/include/libds/xdg_shell_v6.h b/include/libds/xdg_shell_v6.h index df3ede2..279021c 100644 --- a/include/libds/xdg_shell_v6.h +++ b/include/libds/xdg_shell_v6.h @@ -56,6 +56,14 @@ ds_xdg_surface_v6_add_unmap_listener(struct ds_xdg_surface_v6 *surface, struct wl_listener *listener); void +ds_xdg_surface_v6_add_configure_listener(struct ds_xdg_surface_v6 *surface, + struct wl_listener *listener); + +void +ds_xdg_surface_v6_add_ping_timeout_listener(struct ds_xdg_surface_v6 *surface, + struct wl_listener *listener); + +void ds_xdg_surface_v6_ping(struct ds_xdg_surface_v6 *surface); struct ds_surface * @@ -66,6 +74,14 @@ ds_xdg_toplevel_v6_add_set_parent_listener(struct ds_xdg_toplevel_v6 *toplevel, struct wl_listener *listener); void +ds_xdg_toplevel_v6_add_set_title_listener(struct ds_xdg_toplevel_v6 *toplevel, + struct wl_listener *listener); + +void +ds_xdg_toplevel_v6_add_set_app_id_listener(struct ds_xdg_toplevel_v6 *toplevel, + struct wl_listener *listener); + +void ds_xdg_toplevel_v6_add_request_move_listener(struct ds_xdg_toplevel_v6 *toplevel, struct wl_listener *listener); diff --git a/src/xdg_shell_v6/xdg_surface_v6.c b/src/xdg_shell_v6/xdg_surface_v6.c index c9746be..4f4e144 100644 --- a/src/xdg_shell_v6/xdg_surface_v6.c +++ b/src/xdg_shell_v6/xdg_surface_v6.c @@ -47,6 +47,20 @@ ds_xdg_surface_v6_add_unmap_listener(struct ds_xdg_surface_v6 *surface, wl_signal_add(&surface->events.unmap, listener); } +WL_EXPORT void +ds_xdg_surface_v6_add_configure_listener(struct ds_xdg_surface_v6 *surface, + struct wl_listener *listener) +{ + wl_signal_add(&surface->events.configure, listener); +} + +WL_EXPORT void +ds_xdg_surface_v6_add_ping_timeout_listener(struct ds_xdg_surface_v6 *surface, + struct wl_listener *listener) +{ + wl_signal_add(&surface->events.ping_timeout, listener); +} + WL_EXPORT struct ds_surface * ds_xdg_surface_v6_get_surface(struct ds_xdg_surface_v6 *surface) { diff --git a/src/xdg_shell_v6/xdg_toplevel_v6.c b/src/xdg_shell_v6/xdg_toplevel_v6.c index 6a8a7a2..15b1290 100644 --- a/src/xdg_shell_v6/xdg_toplevel_v6.c +++ b/src/xdg_shell_v6/xdg_toplevel_v6.c @@ -18,6 +18,20 @@ ds_xdg_toplevel_v6_add_set_parent_listener(struct ds_xdg_toplevel_v6 *toplevel, } WL_EXPORT void +ds_xdg_toplevel_v6_add_set_title_listener(struct ds_xdg_toplevel_v6 *toplevel, + struct wl_listener *listener) +{ + wl_signal_add(&toplevel->events.set_title, listener); +} + +WL_EXPORT void +ds_xdg_toplevel_v6_add_set_app_id_listener(struct ds_xdg_toplevel_v6 *toplevel, + struct wl_listener *listener) +{ + wl_signal_add(&toplevel->events.set_app_id, listener); +} + +WL_EXPORT void ds_xdg_toplevel_v6_add_request_move_listener(struct ds_xdg_toplevel_v6 *toplevel, struct wl_listener *listener) {