aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwayland.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2021-01-29 16:45:44 +0100
committerSimon Ser <contact@emersion.fr>2021-09-11 09:53:23 +0200
commite479dc1ef0fe5165cd2456927cdf153ce206e023 (patch)
treee44b519d0aa4218b2ede8f21c79d46f534f5db72 /xwayland/xwayland.c
parent4e7a8707cce75b4cdc046581ec0c1cc7c0c26e02 (diff)
xwayland: Allow to retrieve startup-id via _NET_STARTUP_INFO
A launchee notifies with a "remove"¹ message when done starting up. Catch these and forward to the compositor. This allows the compositor to end the startup sequence that might have been started by another protocol like xdg-activation. We don't handle other messages since we expect the launcher to use a wayland protocol like xdg-activation. While `_NET_STARTUP_ID` helps to associate toplevels with startup-ids this signals the end of the startup sequence. 1) https://specifications.freedesktop.org/startup-notification-spec/startup-notification-latest.txt
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r--xwayland/xwayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index dc782284..86e8c6eb 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -81,6 +81,7 @@ struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
wl_signal_init(&xwayland->events.new_surface);
wl_signal_init(&xwayland->events.ready);
+ wl_signal_init(&xwayland->events.remove_startup_info);
struct wlr_xwayland_server_options options = {
.lazy = lazy,