summaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08app/wayland: move late-tasks to AppMarcus Fritzsch1-23/+6
* 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-08add license text to implementation filesMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: make genivi::rect::width and height int32Marcus Fritzsch1-4/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: clang-formatMarcus Fritzsch1-1/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move surface setup as is to app controller hookMarcus Fritzsch1-9/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy once moreMarcus Fritzsch1-7/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-format, mostly indenting.Marcus Fritzsch1-10/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Track surface/layer properties with one structMarcus Fritzsch1-53/+26
As both share the exact same properties this makes sense, we now can write code once and work on both layer and surface properties. This however is only relevant in the wayland "level" of things, as in WM semantics layers are always fullscreen. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add wl::display::get_error()Marcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: noexcept logging and also noreturn for fatal()Marcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-4/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08all: clang-formatMarcus Fritzsch1-5/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: better check_events implementationMarcus Fritzsch1-0/+23
* Introduced helper struct Poller * Implements check_events() and calls custom handlers on POLLIN. * Moved status dump to genivi::controller. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: do not special-case ~display for DEBUG_OUTPUTMarcus Fritzsch1-11/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: genivi object events are called with their respective objectMarcus Fritzsch1-55/+58
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: be explicit about our struct layer/surface designationMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: unique_ptr'd wayland_proxyMarcus Fritzsch1-91/+101
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: removed unnecessary destructorsMarcus Fritzsch1-8/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: simpler layout for controller::proxy_to_id mapsMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved screen inline methods to .cppMarcus Fritzsch1-0/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved inline methods to .cppMarcus Fritzsch1-0/+134
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: less cast-y, minor style fixesMarcus Fritzsch1-41/+39
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-63/+68
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: controller_surface() sets surface visibility, less lookupsMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: less lookup-y controller_layer()Marcus Fritzsch1-1/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove layer on controller::layer_destroyedMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: set layer visibility in init_layout()Marcus Fritzsch1-2/+1
Also don't set layer visibility when adding surfaces. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: introduce reverse mappings of proxy-ptr to idMarcus Fritzsch1-2/+11
Needed to lookup the objects when we receive calls like e.g. surface::layer(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: rename controlled_entity to controller_childMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: cast wl_fixed_to_double() return to float for our interfaceMarcus Fritzsch1-2/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: display unique_ptr holds a void(*)(...) deleterMarcus Fritzsch1-3/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: clang-formatMarcus Fritzsch1-10/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: one less level of unique_ptrMarcus Fritzsch1-1/+1
Display now holds struct registry by value, as holding it through a unique_ptr was rather unnecessary. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: set surface layout in controller::surfaceMarcus Fritzsch1-15/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08use unordered_map for id->obj mapsMarcus Fritzsch1-3/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initialize layer membersMarcus Fritzsch1-2/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: print debug message when setting surface onto layerMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove surface immediately on surface_destroyed eventMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: put surface 0x16180 on layer 100, all others on layer 1000Marcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: simplify surface property settingMarcus Fritzsch1-12/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: store layer propertiesMarcus Fritzsch1-9/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: set surfaces fullscreen when configured.Marcus Fritzsch1-6/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initalize all controll membersMarcus Fritzsch1-1/+6
* Also; added output_size - for now. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add missing controller requestsMarcus Fritzsch1-1/+13
* Added layer_create and surface_create to genivi::controller. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: task names, delete surfaces using pending_tasksMarcus Fritzsch1-3/+3
* Use the pending task list to delete surfaces * Added task names for debug output, simple pointers to const char for dirty and cheap storage. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: storing output mode and surface propertiesMarcus Fritzsch1-2/+35
The events for this are received by the controller, the data however is stored in the surface proxe wrappers. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove surfaces that got destroyedMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main/wayland: added a simple main loopMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minor fix with this-> and formattingMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08renamed controller event methods, all have now a controller_ prefixMarcus Fritzsch1-10/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>