Dispatch pending then flush the connection to make sure we immediately

read () any new events from the compositor