main: move most of main to app, separate ownership
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Wed, 12 Jul 2017 14:40:29 +0000 (16:40 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
commit7678bfc942bd501f8e121ff153d1852d73578257
tree81cb2b27743abffe319661c4f513cf9c5eada17f
parent54c34361d08386c751897ee215554c9ea1efd108
main: move most of main to app, separate ownership

* Move everything apart from the display connection itself to App.
* Everything depending on the display however is owned by App.
* Dispatch events for the application in App::dispatch_events()
That is, display_dispatch and local stuff e.g. execute_pending().

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/CMakeLists.txt
src/app.cpp
src/app.hpp
src/main.cpp