compositor: Sync X drawing only once per frame