aboutsummaryrefslogtreecommitdiffstats
path: root/src/xftfont.c
diff options
context:
space:
mode:
authorDmitry Antipov2014-06-16 12:49:09 +0400
committerDmitry Antipov2014-06-16 12:49:09 +0400
commite9558d441dfafa37efd85c5341b519adc6985319 (patch)
tree10bfb2efeb8c671489e318f15529c1fcf44fae75 /src/xftfont.c
parent680d0ff96854a603c7e18d8d1069067501f1b4ed (diff)
downloademacs-e9558d441dfafa37efd85c5341b519adc6985319.tar.gz
emacs-e9558d441dfafa37efd85c5341b519adc6985319.zip
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)
322 322
323 323
324 block_input (); 324 block_input ();
325 /* Make sure that the Xrender extension is added before the Xft one.
326 Otherwise, the close-display hook set by Xft is called after the
327 one for Xrender, and the former tries to re-add the latter. This
328 results in inconsistency of internal states and leads to X
329 protocol error when one reconnects to the same X server.
330 (Bug#1696) */
331 {
332 int event_base, error_base;
333 XRenderQueryExtension (display, &event_base, &error_base);
334 }
335 325
336 /* Substitute in values from X resources and XftDefaultSet. */ 326 /* Substitute in values from X resources and XftDefaultSet. */
337 XftDefaultSubstitute (display, FRAME_X_SCREEN_NUMBER (f), pat); 327 XftDefaultSubstitute (display, FRAME_X_SCREEN_NUMBER (f), pat);