mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 07:20:35 -08:00
* frame.c (Fset_frame_height): Take frame top margin into account.
Incorrect behavior was reported by Martin Rudalics <rudalics@gmx.at> in <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00258.html>
This commit is contained in:
parent
0df1c7293e
commit
5fc3a9f516
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2014-07-23 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* frame.c (Fset_frame_height): Take frame top margin into account.
|
||||
Incorrect behavior was reported by Martin Rudalics <rudalics@gmx.at> in
|
||||
<http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00258.html>
|
||||
|
||||
2014-07-22 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* xterm.h (struct x_output) [USE_X_TOOLKIT || USE_GTK]: Define
|
||||
|
|
|
|||
|
|
@ -2584,8 +2584,9 @@ FRAME should be HEIGHT pixels high. */)
|
|||
{
|
||||
if (NILP (pixelwise))
|
||||
{
|
||||
if (XINT (height) != FRAME_LINES (f))
|
||||
x_set_window_size (f, 1, FRAME_COLS (f), XINT (height), 0);
|
||||
if (FRAME_LINES (f) - FRAME_TOP_MARGIN (f) != XINT (height))
|
||||
x_set_window_size (f, 1, FRAME_COLS (f),
|
||||
XINT (height) + FRAME_TOP_MARGIN (f), 0);
|
||||
|
||||
do_pending_window_change (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue