2001-11-15 Gerd Moellmann <gerd@gnu.org>
+ * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
+ Some x_set_* function expect to be called even if old and new
+ value are equal.
+
+ * xdisp.c (build_desired_tool_bar_string): Accept zero
+ tool_bar_button_relief.
+
+ * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
+
+ * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
+
* xterm.c (x_draw_bar_cursor): If the background color of the
glyph under the cursor equals the frame's cursor color, use
the glyph's foreground color for drawing the bar cursor.
old_value = get_frame_param (f, prop);
- //if (NILP (Fequal (val, old_value)))
- {
- store_frame_param (f, prop, val);
+ store_frame_param (f, prop, val);
- param_index = Fget (prop, Qx_frame_parameter);
- if (NATNUMP (param_index)
- && (XFASTINT (param_index)
- < sizeof (x_frame_parms)/sizeof (x_frame_parms[0])))
- (*x_frame_parms[XINT (param_index)].setter)(f, val, old_value);
- }
+ param_index = Fget (prop, Qx_frame_parameter);
+ if (NATNUMP (param_index)
+ && (XFASTINT (param_index)
+ < sizeof (x_frame_parms)/sizeof (x_frame_parms[0])))
+ (*x_frame_parms[XINT (param_index)].setter)(f, val, old_value);
}
}