[escher/container] Inline activeApp() accessor

This commit is contained in:
Ruben Dashyan
2019-06-03 10:32:25 +02:00
committed by EmilieNumworks
parent 1f06819974
commit 443f974cbb
2 changed files with 1 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ public:
Container& operator=(Container&& other) = delete;
virtual void * currentAppBuffer() = 0;
virtual void run();
App * activeApp();
App * activeApp() { return m_activeApp; }
virtual bool dispatchEvent(Ion::Events::Event event) override;
virtual bool switchTo(App::Snapshot * snapshot);
protected:

View File

@@ -40,10 +40,6 @@ bool Container::switchTo(App::Snapshot * snapshot) {
return true;
}
App * Container::activeApp() {
return m_activeApp;
}
bool Container::dispatchEvent(Ion::Events::Event event) {
if (event == Ion::Events::TimerFire ) {
window()->redraw();