diff src/xterm.c @ 28139:fb1a89235280

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Tue, 14 Mar 2000 15:19:58 +0000
parents c5b68e855d56
children 156c32f18198
line wrap: on
line diff
--- a/src/xterm.c	Tue Mar 14 00:27:57 2000 +0000
+++ b/src/xterm.c	Tue Mar 14 15:19:58 2000 +0000
@@ -13181,6 +13181,20 @@
 #endif
 #endif
 
+  /* See if we should run in synchronous mode.  This is useful
+     for debugging X code.  */
+  {
+    Lisp_Object value;
+    value = display_x_get_resource (dpyinfo,
+				    build_string ("synchronous"),
+				    build_string ("Synchronous"),
+				    Qnil, Qnil);
+    if (STRINGP (value)
+	&& (!strcmp (XSTRING (value)->data, "true")
+	    || !strcmp (XSTRING (value)->data, "on")))
+      XSynchronize (dpyinfo->display, True);
+  }
+  
   UNBLOCK_INPUT;
 
   return dpyinfo;