Fix handling of internal borders (Bug#16348).
authorMartin Rudalics <rudalics@gmx.at>
Sat, 11 Jan 2014 09:31:09 +0000 (10:31 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 11 Jan 2014 09:31:09 +0000 (10:31 +0100)
commit7d7ccb8829db98eca38cd2bfb31132a7f1adc022
treea10aca13dd3d5c942f3eacf52942ef128433cb30
parentbada50fc50d34e0e2ffd00fd64957cfb397c6eee
Fix handling of internal borders (Bug#16348).

* dispnew.c (adjust_frame_glyphs_for_window_redisplay): Remove
internal border width from pixel width of windows.
(change_frame_size_1): Don't return early when frame's pixel
size changes - we still have to record the new sizes in the
frame structure.
* w32fns.c (x_set_tool_bar_lines): Clear internal border width
also when toolbar gets larger.
* window.c (check_frame_size): Include internal_border_width in
check.
* xdisp.c (Ftool_bar_height): Fix doc-string typo.
* xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): In
non-toolkit/non-GTK version clear internal border.
* xterm.c (x_clear_under_internal_border): New function for
non-toolkit/non-GTK version.
(x_after_update_window_line): In non-toolkit/non-GTK version
don't do that.
(handle_one_xevent, x_set_window_size): Call
x_clear_under_internal_border in non-toolkit/non-GTK version.
* xterm.h (x_clear_under_internal_border): Extern it.
src/ChangeLog
src/dispnew.c
src/w32fns.c
src/window.c
src/xdisp.c
src/xfns.c
src/xterm.c
src/xterm.h