From: Paul Eggert <eggert@cs.ucla.edu>
To: Xu Fasheng <fasheng.xu@gmail.com>
Cc: 21152@debbugs.gnu.org
Subject: bug#21152: emacs make system blocked if "Xft/DPI = -1" in xsettings
Date: Sat, 08 Aug 2015 22:10:40 -0700 [thread overview]
Message-ID: <55C6E0D0.2030100@cs.ucla.edu> (raw)
In-Reply-To: <CA+TDsSnFQDYoDS9mKT1NTMTXFV-0L=PHBZ=8jJf_KRtVzbPCaQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
Thanks for the bug report. Does the attached patch fix the problem for you?
[-- Attachment #2: xftdpi.diff --]
[-- Type: text/x-diff, Size: 495 bytes --]
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;
next prev parent reply other threads:[~2015-08-09 5:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 5:58 bug#21152: emacs make system blocked if "Xft/DPI = -1" in xsettings Xu Fasheng
2015-08-09 5:10 ` Paul Eggert [this message]
[not found] ` <CA+TDsSnFnUdwf4UsrSG2fF0o8dr5YLBhN8W1cWmMz7r6-Z_KWA@mail.gmail.com>
2015-08-10 6:24 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C6E0D0.2030100@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=21152@debbugs.gnu.org \
--cc=fasheng.xu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).