broadway: Sync surface updates with paint clock
broadway: Sync surface updates with paint clock

We now only update surface data after we have painted. Before we painted
in an idle, which meant we might send black data some times if we e.g.
resized the window and had not painted yet. Also, it means we're updating
less often to the daemon, saving resources.

We still have to queue a flush in the idle for non-draw operations,
otherwise e.g. resize of a toplevel will never be flushed if the clock
is frozen (e.g. during toplevel resize).

davidgumberg/gtk,ahodesuka/gtk,msteinert/gtk,Distrotech/gtk2,bratsche/gtk-,grubersjoe/adwaita,davidgumberg/gtk,jessevdk/gtk,Lyude/gtk-,jigpu/gtk,jessevdk/gtk,jadahl/gtk,alexlarsson/gtk,ahodesuka/gtk,Sidnioulz/SandboxGtk,jadahl/gtk,ahodesuka/gtk,grubersjoe/adwaita,Adamovskiy/gtk,ebassi/gtk,Adamovskiy/gtk,chergert/gtk,ahodesuka/gtk,davidgumberg/gtk,jadahl/gtk,jessevdk/gtk,alexlarsson/gtk,alexlarsson/gtk,Distrotech/gtk2,davidgumberg/gtk,jadahl/gtk,msteinert/gtk,bratsche/gtk-,jigpu/gtk,ebassi/gtk,ebassi/gtk,chergert/gtk,Lyude/gtk-,ebassi/gtk,chergert/gtk,bratsche/gtk-,Lyude/gtk-,ebassi/gtk,jadahl/gtk,Adamovskiy/gtk,ahodesuka/gtk,jigpu/gtk,grubersjoe/adwaita,Lyude/gtk-,chergert/gtk,Distrotech/gtk2,grubersjoe/adwaita,jigpu/gtk,bratsche/gtk-,msteinert/gtk,jessevdk/gtk,jessevdk/gtk,msteinert/gtk,davidgumberg/gtk,Adamovskiy/gtk,Lyude/gtk-,Lyude/gtk-,jigpu/gtk,davidgumberg/gtk,davidgumberg/gtk,msteinert/gtk,bratsche/gtk-,Lyude/gtk-,Adamovskiy/gtk,alexlarsson/gtk,jessevdk/gtk,Lyude/gtk-,jigpu/gtk,alexlarsson/gtk,chergert/gtk,Distrotech/gtk2,alexlarsson/gtk,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,Adamovskiy/gtk,chergert/gtk,Sidnioulz/SandboxGtk,Sidnioulz/SandboxGtk,jigpu/gtk,Adamovskiy/gtk,chergert/gtk,ahodesuka/gtk,jadahl/gtk,jadahl/gtk,Sidnioulz/SandboxGtk,alexlarsson/gtk,bratsche/gtk-,ebassi/gtk,msteinert/gtk,jadahl/gtk,Adamovskiy/gtk,Sidnioulz/SandboxGtk,Distrotech/gtk2,davidgumberg/gtk,jessevdk/gtk,ahodesuka/gtk,Sidnioulz/SandboxGtk,chergert/gtk,jigpu/gtk,Distrotech/gtk2,grubersjoe/adwaita,alexlarsson/gtk,ahodesuka/gtk