Subject: bug#21152: emacs make system blocked if "Xft/DPI = -1" in xsettings

From: Paul Eggert <[email-masked]>
Date: Sat, 08 Aug 2015 22:10:40 -0700

Thanks for the bug report.  Does the attached patch fix the problem for you?
diff --git a/src/xsettings.c b/src/xsettings.c
index 028487b..e59bea2 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -537,7 +537,7 @@ parse_settings (unsigned char *prop,
               else
                 settings->seen &= ~SEEN_RGBA;
             }
-          else if (strcmp (name, "Xft/DPI") == 0)
+          else if (strcmp (name, "Xft/DPI") == 0 && ival != (CARD32) -1)
             {
               settings->seen |= SEEN_DPI;
               settings->dpi = (double)ival/1024.0;