about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xxxterm.h b/xxxterm.h
index f52553c..9ad85c1 100644
--- a/xxxterm.h
+++ b/xxxterm.h
@@ -80,6 +80,14 @@ uint32_t	arc4random_uniform(uint32_t);
 #ifdef USE_THREADS
 #include <gcrypt.h>
 #include <pthread.h>
+
+/* #define USE_FLUSH */
+#ifdef USE_FLUSH
+#define GDK_FLUSH()	do { gdk_flush(); } while (0)
+#else
+#define GDK_FLUSH()
+#endif /* USE_FLUSH */
+
 #endif
 
 /* set if you don't want to use signals */