mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
Fix resizing for X and non-Gtk+ build. Bug #5848.
* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use FRAME_LINE_TO_PIXEL_Y. * xterm.c (x_set_window_size_1): Don't add border_width/height to pixelwidth/height.
This commit is contained in:
parent
64e692b56e
commit
f016f225d2
@ -1,3 +1,11 @@
|
||||
2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
|
||||
FRAME_LINE_TO_PIXEL_Y.
|
||||
|
||||
* xterm.c (x_set_window_size_1): Don't add border_width/height to
|
||||
pixelwidth/height.
|
||||
|
||||
2010-04-05 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
|
||||
|
@ -997,8 +997,8 @@ extern Lisp_Object selected_frame;
|
||||
+ FRAME_INTERNAL_BORDER_WIDTH (f))
|
||||
|
||||
#define FRAME_TEXT_LINES_TO_PIXEL_HEIGHT(f, lines) \
|
||||
(FRAME_LINE_TO_PIXEL_Y (f, lines) \
|
||||
+ FRAME_INTERNAL_BORDER_WIDTH (f))
|
||||
((lines) * FRAME_LINE_HEIGHT (f) \
|
||||
+ 2 * FRAME_INTERNAL_BORDER_WIDTH (f))
|
||||
|
||||
|
||||
/* Return the row/column (zero-based) of the character cell containing
|
||||
|
@ -8933,11 +8933,9 @@ x_set_window_size_1 (f, change_gravity, cols, rows)
|
||||
|
||||
compute_fringe_widths (f, 0);
|
||||
|
||||
pixelwidth = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, cols)
|
||||
+ 2*f->border_width;
|
||||
pixelwidth = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, cols);
|
||||
pixelheight = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, rows)
|
||||
+ FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)
|
||||
+ 2*f->border_width;
|
||||
+ FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f);
|
||||
|
||||
if (change_gravity) f->win_gravity = NorthWestGravity;
|
||||
x_wm_set_size_hint (f, (long) 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user