diff options
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/app.cpp b/src/app.cpp index 7b2b69c..9b8f1fd 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -159,15 +159,12 @@ int App::dispatch_events() { } this->display->flush(); - // execute pending tasks, that is layout changes etc. - // this->execute_pending(); - return 0; } int App::dispatch_pending_events() { - if (this->pending_events.load(std::memory_order_consume)) { - this->pending_events.store(false, std::memory_order_release); + if (this->pop_pending_events()) { + assert(this->pending_events == false); this->display->dispatch_pending(); return 0; } |