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/xwayland/xwm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/xwayland') diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 5e6bfee3..0cdf6ea1 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -56,6 +56,8 @@ enum atom_name { TIMESTAMP, DELETE, NET_STARTUP_ID, + NET_STARTUP_INFO, + NET_STARTUP_INFO_BEGIN, NET_WM_WINDOW_TYPE_NORMAL, NET_WM_WINDOW_TYPE_UTILITY, NET_WM_WINDOW_TYPE_TOOLTIP, @@ -113,6 +115,7 @@ struct wlr_xwm { // Surfaces in bottom-to-top stacking order, for _NET_CLIENT_LIST_STACKING struct wl_list surfaces_in_stack_order; // wlr_xwayland_surface::stack_link struct wl_list unpaired_surfaces; // wlr_xwayland_surface::unpaired_link + struct wl_list pending_startup_ids; // pending_startup_id struct wlr_drag *drag; struct wlr_xwayland_surface *drag_focus; -- cgit v1.2.3