summaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-11-29 21:11:50 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-12-03 13:01:18 +0900
commita96fae7e99c2d13bc864d919cbdbcd68ba9cb841 (patch)
tree862543d37148e492b922a6c629a2a3be13480ab9 /src/wm_client.cpp
parent2b1bf85afe0a8b24f75386f7c24df85f9b785bd3 (diff)
Fix timing issue of surface creation
Rarely Window Manager get the event of surface creation after activateWindow. In that case, Window Manager reject application request because client doesn't have surface. This patch makes WM does provisional registration. Change-Id: Ib0a54a7f399f333175e0a4613364f7bcb0de9cc7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index e7cb552..040c52b 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -111,6 +111,11 @@ unsigned WMClient::surfaceID() const
return this->surface;
}
+void WMClient::registerSurface(unsigned surface)
+{
+ this->surface = surface;
+}
+
/**
* Add surface to the client
*