compositor: Don't repaint outputs being destroyed
Set a flag when an output is being destroyed and use that to avoid
repainting. This allows functions that schedule an output repaint to
be called when the output is being destroyed without causing the
compositor to crash.
diff --git a/src/compositor.h b/src/compositor.h
index 84b0f79..901366f 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -198,6 +198,7 @@
int move_x, move_y;
uint32_t frame_time;
int disable_planes;
+ int destroying;
char *make, *model, *serial_number;
uint32_t subpixel;