From 464f20cc2a960052233c4e2cbc2bd7dd3876b7f7 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 13 Mar 2019 18:02:37 +0900 Subject: Fix xdg-runcher doesn't show up xdg-runcher 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/window_manager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window_manager.hpp') diff --git a/src/window_manager.hpp b/src/window_manager.hpp index eac6576..4c2c49b 100644 --- a/src/window_manager.hpp +++ b/src/window_manager.hpp @@ -134,7 +134,6 @@ struct TmpClient unsigned layer; }; - class WindowManager { public: @@ -195,6 +194,7 @@ class WindowManager void processError(WMError error); private: + unsigned generateLayerForClient(const std::string &role); WMError setRequest(const std::string &appid, const std::string &role, const std::string &area, Task task, unsigned *req_num); WMError checkPolicy(unsigned req_num); -- cgit 1.2.3-korg