aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2019-03-13 18:02:37 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2019-04-01 11:55:02 +0900
commit8fdfc4b8e8cb61f2c2a59040d02ab840d56e1dda (patch)
treef070dda3cac4b0c0b2cb9b8cb8476a260be3a831 /src/wm_client.cpp
parentf0b7ade0769bcf48b7059f5020d9a233fd36e622 (diff)
Fix xdg-launcher doesn't show upguppy_7.0.1guppy/7.0.17.0.1
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 <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index d3f0364..4bccb8c 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -120,11 +120,21 @@ string WMClient::role() const
return this->main_role;
}
+void WMClient::setRole(const string& role)
+{
+ this->main_role = role;
+}
+
unsigned WMClient::layerID() const
{
return this->layer;
}
+void WMClient::setLayerID(unsigned id)
+{
+ this->layer = id;
+}
+
unsigned WMClient::surfaceID() const
{
return this->surface;