summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/frame.c b/src/frame.c
index f1cc0ce019d..a568342966a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2606,11 +2606,9 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
val = values[i];
store_frame_param (f, prop, val);
- /* Changing the background color might change the background
- mode, so that we have to load new defface specs.
- Call frame-set-background-mode to do that. */
- if (EQ (prop, Qbackground_color))
- call1 (Qframe_set_background_mode, frame);
+ if (EQ (prop, Qforeground_color)
+ || EQ (prop, Qbackground_color))
+ update_face_from_frame_parameter (f, prop, val);
}
}
return Qnil;