From e9f740cc474a563660cad1f531b30130a0f3fea2 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 6 Aug 2013 12:37:11 +0100 Subject: [PATCH] Add "desktop_ready" function to desktop_shell interface. Signed-off-by: Chris Michael --- src/modules/wl_desktop_shell/e_desktop_shell_protocol.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/wl_desktop_shell/e_desktop_shell_protocol.h b/src/modules/wl_desktop_shell/e_desktop_shell_protocol.h index 61bb3f3..662df8a 100644 --- a/src/modules/wl_desktop_shell/e_desktop_shell_protocol.h +++ b/src/modules/wl_desktop_shell/e_desktop_shell_protocol.h @@ -74,6 +74,20 @@ struct e_desktop_shell_interface { void (*set_grab_surface)(struct wl_client *client, struct wl_resource *resource, struct wl_resource *surface); + + /** + * desktop_ready - desktop is ready to be shown + * + * Tell the server, that enough desktop elements have been drawn + * to make the desktop look ready for use. During start-up, the + * server can wait for this request with a black screen before + * starting to fade in the desktop, for instance. If the client + * parts of a desktop take a long time to initialize, we avoid + * showing temporary garbage. + * @since: 2 + */ + void (*desktop_ready)(struct wl_client *client, + struct wl_resource *resource); }; #define E_DESKTOP_SHELL_CONFIGURE 0 -- 2.7.4