diff options
| author | Martin Rudalics | 2015-11-23 18:39:18 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-11-23 18:39:18 +0100 |
| commit | a5749550ddde6c632e5a4f4a3dae3c488c94b02f (patch) | |
| tree | f810942b4f03158d9c2b34e19284f57b81c4c408 /src/frame.c | |
| parent | b28107b6655f31576bb389b647e95b113ebc8658 (diff) | |
| download | emacs-a5749550ddde6c632e5a4f4a3dae3c488c94b02f.tar.gz emacs-a5749550ddde6c632e5a4f4a3dae3c488c94b02f.zip | |
Move setting FRAME_WINDOW_SIZES_CHANGED to resize_frame_windows.
* src/frame.c (adjust_frame_size): Don't set
FRAME_WINDOW_SIZES_CHANGED here ...
* src/window.c (resize_frame_windows): ... but here, as suggested
by Stefan Monnier. Also remove some dead code along the way.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 5bafc6ed8d9..c388986e351 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -518,7 +518,6 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 518 | if (new_windows_width != old_windows_width) | 518 | if (new_windows_width != old_windows_width) |
| 519 | { | 519 | { |
| 520 | resize_frame_windows (f, new_windows_width, 1, 1); | 520 | resize_frame_windows (f, new_windows_width, 1, 1); |
| 521 | FRAME_WINDOW_SIZES_CHANGED (f) = true; | ||
| 522 | 521 | ||
| 523 | /* MSDOS frames cannot PRETEND, as they change frame size by | 522 | /* MSDOS frames cannot PRETEND, as they change frame size by |
| 524 | manipulating video hardware. */ | 523 | manipulating video hardware. */ |
| @@ -544,7 +543,6 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 544 | || WINDOW_TOP_PIXEL_EDGE (r) != FRAME_TOP_MARGIN_HEIGHT (f)) | 543 | || WINDOW_TOP_PIXEL_EDGE (r) != FRAME_TOP_MARGIN_HEIGHT (f)) |
| 545 | { | 544 | { |
| 546 | resize_frame_windows (f, new_windows_height, 0, 1); | 545 | resize_frame_windows (f, new_windows_height, 0, 1); |
| 547 | FRAME_WINDOW_SIZES_CHANGED (f) = true; | ||
| 548 | 546 | ||
| 549 | /* MSDOS frames cannot PRETEND, as they change frame size by | 547 | /* MSDOS frames cannot PRETEND, as they change frame size by |
| 550 | manipulating video hardware. */ | 548 | manipulating video hardware. */ |