From 8fdfc4b8e8cb61f2c2a59040d02ab840d56e1dda Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 13 Mar 2019 18:02:37 +0900 Subject: Fix xdg-launcher doesn't show up xdg-launcher calls "subscribe" before requestSurface, then windowmanager reject it because WMClient object is not created yet. This patch changes to register WMClient if it is not created when App calls "subscribe". Application doesn't need to care about the order of "requestSurface" and "subscribe". Bug-AGL: SPEC-2218 Change-Id: Ia82ff939dfdb2bbfd377bd50fd3d4b844451cd3b Signed-off-by: Kazumasa Mitsunari --- src/wm_client.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wm_client.hpp') diff --git a/src/wm_client.hpp b/src/wm_client.hpp index 17d2221..7df4dea 100644 --- a/src/wm_client.hpp +++ b/src/wm_client.hpp @@ -45,7 +45,9 @@ class WMClient std::string appID() const; std::string role() const; + void setRole(const std::string& role); unsigned layerID() const; + void setLayerID(unsigned id); unsigned surfaceID() const; void registerSurface(unsigned surface); void activate(); -- cgit 1.2.3-korg