summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2022-07-21 15:45:22 +0100
committerPekka Paalanen <pq@iki.fi>2023-04-19 08:28:21 +0000
commited35fc7f6abb341a69a4656ae10febd40822f360 (patch)
treeb5912c0d4a892b147850e47686f28d54b773f8b9
parenta3a843163451f0a07c5ce9980f27bb95ed7622cb (diff)
downloadweston-ed35fc7f6abb341a69a4656ae10febd40822f360.tar.gz
screenshooter: Rename compositor_destroy_listener
Make it more descriptive in order to add a client_destroy_listener. Signed-off-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--compositor/weston-screenshooter.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/compositor/weston-screenshooter.c b/compositor/weston-screenshooter.c
index 7fea465d..a548e296 100644
--- a/compositor/weston-screenshooter.c
+++ b/compositor/weston-screenshooter.c
@@ -37,7 +37,7 @@ struct screenshooter {
struct weston_compositor *ec;
struct wl_client *client;
struct weston_process process;
- struct wl_listener destroy_listener;
+ struct wl_listener compositor_destroy_listener;
struct weston_recorder *recorder;
struct wl_listener authorization;
};
@@ -111,9 +111,10 @@ static void
screenshooter_destroy(struct wl_listener *listener, void *data)
{
struct screenshooter *shooter =
- container_of(listener, struct screenshooter, destroy_listener);
+ container_of(listener, struct screenshooter,
+ compositor_destroy_listener);
- wl_list_remove(&shooter->destroy_listener.link);
+ wl_list_remove(&shooter->compositor_destroy_listener.link);
wl_list_remove(&shooter->authorization.link);
free(shooter);
@@ -135,8 +136,9 @@ screenshooter_create(struct weston_compositor *ec)
weston_compositor_add_key_binding(ec, KEY_R, MODIFIER_SUPER,
recorder_binding, shooter);
- shooter->destroy_listener.notify = screenshooter_destroy;
- wl_signal_add(&ec->destroy_signal, &shooter->destroy_listener);
+ shooter->compositor_destroy_listener.notify = screenshooter_destroy;
+ wl_signal_add(&ec->destroy_signal,
+ &shooter->compositor_destroy_listener);
weston_compositor_add_screenshot_authority(ec, &shooter->authorization,
authorize_screenshooter);