aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/frame.c b/src/frame.c
index 0d45c2de197..c3b6565101c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4249,9 +4249,9 @@ multiplied to find the real number of pixels. */)
4249/* Connect the frame-parameter names for frames to the ways of passing 4249/* Connect the frame-parameter names for frames to the ways of passing
4250 the parameter values to the window system. 4250 the parameter values to the window system.
4251 4251
4252 The name of a parameter, as a Lisp symbol, has a 4252 The name of a parameter, a Lisp symbol, has an `x-frame-parameter'
4253 `frame-parameter-pos' property which is an integer in Lisp that is 4253 property which is its index in this table. This is initialized in
4254 an index in this table. */ 4254 syms_of_frame. */
4255 4255
4256struct frame_parm_table { 4256struct frame_parm_table {
4257 const char *name; 4257 const char *name;
@@ -4262,13 +4262,13 @@ static const struct frame_parm_table frame_parms[] =
4262{ 4262{
4263 {"auto-raise", SYMBOL_INDEX (Qauto_raise)}, 4263 {"auto-raise", SYMBOL_INDEX (Qauto_raise)},
4264 {"auto-lower", SYMBOL_INDEX (Qauto_lower)}, 4264 {"auto-lower", SYMBOL_INDEX (Qauto_lower)},
4265 {"background-color", -1}, 4265 {"background-color", SYMBOL_INDEX (Qbackground_color)},
4266 {"border-color", SYMBOL_INDEX (Qborder_color)}, 4266 {"border-color", SYMBOL_INDEX (Qborder_color)},
4267 {"border-width", SYMBOL_INDEX (Qborder_width)}, 4267 {"border-width", SYMBOL_INDEX (Qborder_width)},
4268 {"cursor-color", SYMBOL_INDEX (Qcursor_color)}, 4268 {"cursor-color", SYMBOL_INDEX (Qcursor_color)},
4269 {"cursor-type", SYMBOL_INDEX (Qcursor_type)}, 4269 {"cursor-type", SYMBOL_INDEX (Qcursor_type)},
4270 {"font", -1}, 4270 {"font", SYMBOL_INDEX (Qfont)},
4271 {"foreground-color", -1}, 4271 {"foreground-color", SYMBOL_INDEX (Qforeground_color)},
4272 {"icon-name", SYMBOL_INDEX (Qicon_name)}, 4272 {"icon-name", SYMBOL_INDEX (Qicon_name)},
4273 {"icon-type", SYMBOL_INDEX (Qicon_type)}, 4273 {"icon-type", SYMBOL_INDEX (Qicon_type)},
4274 {"child-frame-border-width", SYMBOL_INDEX (Qchild_frame_border_width)}, 4274 {"child-frame-border-width", SYMBOL_INDEX (Qchild_frame_border_width)},
@@ -6720,17 +6720,13 @@ syms_of_frame (void)
6720 DEFSYM (Quse_frame_synchronization, "use-frame-synchronization"); 6720 DEFSYM (Quse_frame_synchronization, "use-frame-synchronization");
6721 DEFSYM (Qfont_parameter, "font-parameter"); 6721 DEFSYM (Qfont_parameter, "font-parameter");
6722 6722
6723 { 6723 for (int i = 0; i < ARRAYELTS (frame_parms); i++)
6724 int i; 6724 {
6725 6725 int sym = frame_parms[i].sym;
6726 for (i = 0; i < ARRAYELTS (frame_parms); i++) 6726 eassert (sym >= 0 && sym < ARRAYELTS (lispsym));
6727 { 6727 Lisp_Object v = builtin_lisp_symbol (sym);
6728 Lisp_Object v = (frame_parms[i].sym < 0 6728 Fput (v, Qx_frame_parameter, make_fixnum (i));
6729 ? intern_c_string (frame_parms[i].name) 6729 }
6730 : builtin_lisp_symbol (frame_parms[i].sym));
6731 Fput (v, Qx_frame_parameter, make_fixnum (i));
6732 }
6733 }
6734 6730
6735#ifdef HAVE_WINDOW_SYSTEM 6731#ifdef HAVE_WINDOW_SYSTEM
6736 DEFVAR_LISP ("x-resource-name", Vx_resource_name, 6732 DEFVAR_LISP ("x-resource-name", Vx_resource_name,