summaryrefslogtreecommitdiff
path: root/src/xftfont.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-06-16 12:49:09 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-06-16 12:49:09 +0400
commite9558d441dfafa37efd85c5341b519adc6985319 (patch)
tree10bfb2efeb8c671489e318f15529c1fcf44fae75 /src/xftfont.c
parent680d0ff96854a603c7e18d8d1069067501f1b4ed (diff)
downloademacs-e9558d441dfafa37efd85c5341b519adc6985319.tar.gz
Do not ask for XRender extension each time XFT font is opened.
* xftfont.c (xftfont_open): Move call to XRenderQueryExtension ... * xterm.c (x_term_init) [HAVE_XFT]: ... to here. Adjust comment.
Diffstat (limited to 'src/xftfont.c')
-rw-r--r--src/xftfont.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/xftfont.c b/src/xftfont.c
index 421eb713a15..2b4ec065734 100644
--- a/src/xftfont.c
+++ b/src/xftfont.c
@@ -322,16 +322,6 @@ xftfont_open (struct frame *f, Lisp_Object entity, int pixel_size)
block_input ();
- /* Make sure that the Xrender extension is added before the Xft one.
- Otherwise, the close-display hook set by Xft is called after the
- one for Xrender, and the former tries to re-add the latter. This
- results in inconsistency of internal states and leads to X
- protocol error when one reconnects to the same X server.
- (Bug#1696) */
- {
- int event_base, error_base;
- XRenderQueryExtension (display, &event_base, &error_base);
- }
/* Substitute in values from X resources and XftDefaultSet. */
XftDefaultSubstitute (display, FRAME_X_SCREEN_NUMBER (f), pat);