mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -05:00
Enable explicit changing of the window title after session start
[originally from svn r852]
This commit is contained in:
parent
48b368d3ed
commit
e4532bb582
7
windlg.c
7
windlg.c
@ -844,10 +844,9 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg,
|
||||
endbox(&cp);
|
||||
beginbox(&cp, "Adjust the use of the window title",
|
||||
IDC_BOX_APPEARANCE3, IDC_BOXT_APPEARANCE3);
|
||||
if (dlgtype == 0)
|
||||
multiedit(&cp,
|
||||
"Initial window &title:", IDC_WINTITLE,
|
||||
IDC_WINEDIT, 100, NULL);
|
||||
multiedit(&cp,
|
||||
"Window &title:", IDC_WINTITLE,
|
||||
IDC_WINEDIT, 100, NULL);
|
||||
checkbox(&cp, "Avoid ever using &icon title", IDC_WINNAME);
|
||||
endbox(&cp);
|
||||
|
||||
|
2
window.c
2
window.c
@ -1183,6 +1183,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
||||
cfg.height = rows;
|
||||
old_fwidth = font_width;
|
||||
old_fheight = font_height;
|
||||
GetWindowText(hwnd, cfg.wintitle, sizeof(cfg.wintitle));
|
||||
|
||||
if (!do_reconfig(hwnd))
|
||||
break;
|
||||
@ -1282,6 +1283,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
||||
SWP_NOACTIVATE | SWP_NOCOPYBITS |
|
||||
SWP_NOMOVE | SWP_NOZORDER);
|
||||
}
|
||||
set_title(cfg.wintitle);
|
||||
if (IsIconic(hwnd)) {
|
||||
SetWindowText (hwnd,
|
||||
cfg.win_name_always ? window_name : icon_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user