Differences From Artifact [e9ed71ebc3]:
- File windows/window.c — part of check-in [5ed4cc5656] at 2010-12-22 10:14:11 on branch trunk — Pay attention to the width and height provided in WM_SIZE even when restoring a maximised window. Failure to do this was noticeable in the following scenario (again using Aero UI enhancements): 1. resize window using topmost resize handle, and move pointer to top of screen which 'maximises' the window vertically 2. now maximise the window properly using the maximise button in top right 3. now restore. Notepad restores to its position before step 1, because Aero remembers that position for the purpose, but PuTTY thinks it knows better. Only now it doesn't any more. (user: simon size: 144944)
To Artifact [28fd027b88]:
- File windows/window.c — part of check-in [a41a48a0c1] at 2010-12-23 09:44:20 on branch trunk — Another fix to yesterday's window-resizing revamp: when restoring from maximised state, we must be sure to disable the window offset used to centre the terminal in cases where the window is non-negotiably the wrong size (e.g. maximised). Hence we must call reset_window after our terminal resize. (user: simon size: 144981)
| ︙ | |||
2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 | 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 | + |
was_zoomed = 0;
if (cfg.resize_action == RESIZE_TERM) {
w = (width-cfg.window_border*2) / font_width;
if (w < 1) w = 1;
h = (height-cfg.window_border*2) / font_height;
if (h < 1) h = 1;
term_size(term, h, w, cfg.savelines);
reset_window(2);
} else if (cfg.resize_action != RESIZE_FONT)
reset_window(2);
else
reset_window(0);
} else if (wParam == SIZE_MINIMIZED) {
/* do nothing */
} else if (cfg.resize_action != RESIZE_FONT && !is_alt_pressed()) {
|
| ︙ |