mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
Use set_icon and set_title rather than SetWindowText. Should fix
inactive-title. [originally from svn r2606]
This commit is contained in:
parent
55a996614b
commit
8cb6506cd3
6
window.c
6
window.c
@ -906,7 +906,8 @@ void connection_fatal(void *frontend, char *fmt, ...)
|
|||||||
PostQuitMessage(1);
|
PostQuitMessage(1);
|
||||||
else {
|
else {
|
||||||
session_closed = TRUE;
|
session_closed = TRUE;
|
||||||
SetWindowText(hwnd, "PuTTY (inactive)");
|
set_icon(NULL, "PuTTY (inactive)");
|
||||||
|
set_title(NULL, "PuTTY (inactive)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -950,7 +951,8 @@ static void enact_pending_netevent(void)
|
|||||||
cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0);
|
cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0);
|
||||||
else {
|
else {
|
||||||
session_closed = TRUE;
|
session_closed = TRUE;
|
||||||
SetWindowText(hwnd, "PuTTY (inactive)");
|
set_icon(NULL, "PuTTY (inactive)");
|
||||||
|
set_title(NULL, "PuTTY (inactive)");
|
||||||
MessageBox(hwnd, "Connection closed by remote host",
|
MessageBox(hwnd, "Connection closed by remote host",
|
||||||
"PuTTY", MB_OK | MB_ICONINFORMATION);
|
"PuTTY", MB_OK | MB_ICONINFORMATION);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user