X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=9b8f1fdc3a75e060f66634cf823cb1503bc085e6;hb=83555b0c53f0d59f42e9dcfaeb269948e65e0391;hp=7b2b69cc3fe1480a74a63e2ee93d6b7e45592a3a;hpb=b154238b7b9e0d21b60c08a1bec23920bff40e36;p=staging%2Fwindowmanager.git 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; }