Avoid drawing implicit paints to destroyed windows
Avoid drawing implicit paints to destroyed windows

It may happen that a window gets destroyed during painting, if so
we should not draw the implicit paint double-buffered pixmap to it
as that will cause a BadDrawable X error.

This fixes bug 600865

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