Added counter for operations generating graphics exposures to the DC
struct, to avoid waiting for expose events when none were generated.

diff --git a/include/x11drv.h b/include/x11drv.h
index c288d92..ac26a28 100644
--- a/include/x11drv.h
+++ b/include/x11drv.h
@@ -68,6 +68,7 @@
     X_PHYSBRUSH   brush;
     int           backgroundPixel;
     int           textPixel;
+    int           exposures;   /* count of graphics exposures operations */
     XVisualInfo  *visuals[MAX_PIXELFORMATS];
     int           used_visuals;
     int           current_pf;