summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-09-05main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is presentMarcus Fritzsch1-1/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: emit visibility eventsMarcus Fritzsch2-6/+18
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05layers: prefer using instead of typedefMarcus Fritzsch1-4/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: be a little more thorough when activating a surfaceMarcus Fritzsch1-1/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: only activate/deactivate if necessaryMarcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove unimplemented (stubbed) binding API methodsMarcus Fritzsch1-12/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05wayland: debug log prints IDs instead of controller ptrMarcus Fritzsch1-29/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: some quality improvements, add activate/deactivate helperMarcus Fritzsch2-26/+33
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove last_active logicMarcus Fritzsch2-39/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05main: exit on compositor hangupMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup requestSurface API method.Marcus Fritzsch2-3/+4
* Use lookup_id(). * Do not call activate_surface() as the surface does not yet exist. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: emit activated and deactivated eventsMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup name/id mapping and its reverseMarcus Fritzsch2-74/+54
* Single name/id mapping in id_alloc. * Add Proxy methods to App. * Disable old API functions to activate surfaces by ID. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App/API: fix event emission methodsMarcus Fritzsch3-7/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04main: simplify event broadcastingMarcus Fritzsch1-2/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: remove previous work around experiments, add one that fixes HomeScreenMarcus Fritzsch1-21/+44
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: remove add_task/execute_pending supportMarcus Fritzsch4-50/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04main/binding: do not allow concurrent threads in AppMarcus Fritzsch1-0/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: workaround for visibility setting; use system()Marcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: visibility setting work around... peak software enfineering right here!!1Marcus Fritzsch1-2/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: do not use the Qt surface ID shift hackMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: use activate_surface() in surface_set_layout()Marcus Fritzsch1-2/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04wayland: only create layers and surfaces when necessaryMarcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04wayland: honor output transformationsMarcus Fritzsch2-0/+7
At least rotations by 90 and 270 degrees. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: do not apply left id_shift to generated ID!Marcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: use id_shift of 22, just like in QtMarcus Fritzsch2-4/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app/main: add send_event() to binding_apiMarcus Fritzsch3-2/+39
* Preliminary event support - wrong names, likely wrong implementation Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: added enddraw() and deactivate_surface()Marcus Fritzsch2-11/+101
Implementation untested, not sure if this is even sensible... Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app/id_alloc: remove destroyed surfacesMarcus Fritzsch2-7/+28
Also, make away with those overloaded operators for generation and lookup. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clarify some thingsMarcus Fritzsch2-2/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04add role to layer::to_json()Marcus Fritzsch2-5/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-tidyMarcus Fritzsch4-5/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-formatMarcus Fritzsch4-35/+31
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04Implement surface namesMarcus Fritzsch4-26/+198
* request_surface(name: string) -> id: int. * activate_surface(name: string). * names will be mapped to their respective layers by use of the layers' surface rola match, a regex. * the generated IDs are global and not reused. * allow wp-request to use -p, disable use of pygments even if found. Things missing: * surface removal does not remove already established mappings/names. * Mostly untested. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-16app: some more constructor securityMarcus Fritzsch2-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-15layers: remove last remnants of get<T> to read ints from jsonMarcus Fritzsch2-11/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11Remove the DB() makro, replace with logdebug() where sensibleMarcus Fritzsch3-22/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11layers: fix json to actually include numbersMarcus Fritzsch2-13/+13
Actually use numbers where we had number-strings. This simplifies the json parsing quite a bit. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang formattingMarcus Fritzsch5-14/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08remove PollerMarcus Fritzsch2-37/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08remove some unnuecessary commentsMarcus Fritzsch10-42/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: uncomment INTERPROCEDURAL_OPTIMIZATION settingMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/api: add demo_activate_all()Marcus Fritzsch1-2/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: remove spurious commentMarcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/api: add demo_activate_surface() api_bindingMarcus Fritzsch4-0/+46
* Added "main_surface" entry to layers.json. * This surface is never made invisible by activate_surface(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: do not set surface source rectangle on layout setupMarcus Fritzsch1-2/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: comment on surface visiblity and layout setupMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move late-tasks to AppMarcus Fritzsch5-38/+39
* Move late-tasks to App. * Add add_task() to controller_hooks. * Do not roundtrip at the end of App::execute_pending(), flush() is enough. * Tasks are now void() functions, need to capture what is needed. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: reference export.map using CMAKE_CURRENT_SOURCE_DIRMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add surface_set_layout(), call it from genivi::controller late-taskMarcus Fritzsch2-38/+55
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>