From e479dc1ef0fe5165cd2456927cdf153ce206e023 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 29 Jan 2021 16:45:44 +0100 Subject: xwayland: Allow to retrieve startup-id via _NET_STARTUP_INFO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/wlr/xwayland.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index a91638eb..3689b8b3 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -72,6 +72,7 @@ struct wlr_xwayland { struct { struct wl_signal ready; struct wl_signal new_surface; + struct wl_signal remove_startup_info; } events; /** @@ -232,6 +233,11 @@ struct wlr_xwayland_move_event { struct wlr_xwayland_surface *surface; }; +struct wlr_xwayland_remove_startup_info_event { + const char *id; + xcb_window_t window; +}; + struct wlr_xwayland_resize_event { struct wlr_xwayland_surface *surface; uint32_t edges; -- cgit v1.2.3