spice: flush drawing before notifying client