App: add enqueue_flushdraw() and check_flushdraw()