aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 5638ed65d5f..4c053f663fa 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -903,7 +903,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
903 if (id == 0) 903 if (id == 0)
904 { 904 {
905 BLOCK_INPUT; 905 BLOCK_INPUT;
906 if (FRAME_DEFAULT_FACE (f)->gc != 0) 906 if (FRAME_DEFAULT_FACE (f)->gc != 0
907 && FRAME_DEFAULT_FACE (f)->gc != f->display.x->normal_gc
908 && FRAME_DEFAULT_FACE (f)->gc != f->display.x->reverse_gc)
907 XFreeGC (x_current_display, FRAME_DEFAULT_FACE (f)->gc); 909 XFreeGC (x_current_display, FRAME_DEFAULT_FACE (f)->gc);
908 build_face (f, FRAME_DEFAULT_FACE (f)); 910 build_face (f, FRAME_DEFAULT_FACE (f));
909 UNBLOCK_INPUT; 911 UNBLOCK_INPUT;
@@ -912,7 +914,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
912 if (id == 1) 914 if (id == 1)
913 { 915 {
914 BLOCK_INPUT; 916 BLOCK_INPUT;
915 if (FRAME_MODE_LINE_FACE (f)->gc != 0) 917 if (FRAME_MODE_LINE_FACE (f)->gc != 0
918 && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->normal_gc
919 && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->reverse_gc)
916 XFreeGC (x_current_display, FRAME_MODE_LINE_FACE (f)->gc); 920 XFreeGC (x_current_display, FRAME_MODE_LINE_FACE (f)->gc);
917 build_face (f, FRAME_MODE_LINE_FACE (f)); 921 build_face (f, FRAME_MODE_LINE_FACE (f));
918 UNBLOCK_INPUT; 922 UNBLOCK_INPUT;