diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-10-20 12:27:29 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-10-20 13:37:52 -0400 |
commit | d6b295b89882b61ddefc4bed4b6f8dad0181d170 (patch) | |
tree | 00c4a6c74a0d7c7062d390b416509fa73ca47570 /src/window_manager.cpp | |
parent | 8501d1f32139212ad1b26eaf08dabf42edab9c9a (diff) |
Add remote display supporticefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.48.99.38.99.28.99.1
Apply a heavily refactored version of the remote display changes from
the CES 2019 demo #3 source demo3/common/agl-service-windowmanager in:
https://git.automotivelinux.org/staging/new-apps
The refactoring of the extracted changes has been done with an eye to
reduce code duplication and minimize the changes to existing code.
As well, the required default policy manager changes missing in the
demo #3 tree have been added to produce a working default policy.
At present the configuration has been hard-coded to assume use of the
tbtnavi application on a Weston remoting display, but testing has
also been done with a second display on one board. The changes should
not impact operation of any other application, as only applications
with roles listed in the "Remote" layer definition can be displayed
on a configured second Weston screen.
Bug-AGL: SPEC-2914
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I29380bbbec46969b75ed4fe7e8095db772524082
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r-- | src/window_manager.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp index f9070f6..dcaf636 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2017 TOYOTA MOTOR CORPORATION + * Copyright (c) 2019 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -713,7 +714,8 @@ void WindowManager::processError(WMError error) unsigned WindowManager::generateLayerForClient(const string& role) { - unsigned lid = this->lc->getNewLayerID(role); + string l_name; + unsigned lid = this->lc->getNewLayerID(role, &l_name); if (lid == 0) { // register drawing_name as fallback and make it displayed. @@ -724,7 +726,10 @@ unsigned WindowManager::generateLayerForClient(const string& role) return lid; } } - this->lc->createNewLayer(lid); + + // TODO: remote layer name is fixed + this->lc->createNewLayer(lid, ("Remote" == l_name)); + // add client into the db return lid; } |