diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-05 17:59:21 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-05 17:59:25 +0900 |
commit | cbfecfc4cb26e92602d77674d64115529bbc9685 (patch) | |
tree | b0a6e999b79c532bb2c5e337de4ce5ecbaa9746e /src/window_manager.cpp | |
parent | de492ca32c0cc4eb7e090ba33945eb75a21cc14a (diff) |
Fix source size 0 sometimes
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r-- | src/window_manager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp index 31caebf..f209f12 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -227,6 +227,12 @@ result<int> WindowManager::api_request_surface(char const *appid, char const *dr auto id = int(this->id_alloc.generate_id(role)); this->tmp_surface2app[id] = {s_appid, 0}; + // Work Around + HMI_NOTICE("WORK AROUND: add surface on request surface"); + auto client = g_app_list.lookUpClient(s_appid); + client->addSurface(id); + /////////////// + // Set role map of (new, old) this->rolenew2old[role] = string(drawing_name); |