1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 17:47:33 -05:00

Glenn Maynard's patch (as adapted by Jacob) for taskbar flashing

when a bell occurs and the window is minimised.

[originally from svn r1123]
This commit is contained in:
Simon Tatham
2001-05-13 14:42:17 +00:00
parent 52a688abd1
commit 84e58edf9f
5 changed files with 81 additions and 7 deletions

View File

@ -110,6 +110,7 @@ void save_settings(char *section, int do_host, Config * cfg)
write_setting_i(sesskey, "CurType", cfg->cursor_type);
write_setting_i(sesskey, "BlinkCur", cfg->blink_cur);
write_setting_i(sesskey, "Beep", cfg->beep);
write_setting_i(sesskey, "BeepInd", cfg->beep_ind);
write_setting_s(sesskey, "BellWaveFile", cfg->bell_wavefile);
write_setting_i(sesskey, "BellOverload", cfg->bellovl);
write_setting_i(sesskey, "BellOverloadN", cfg->bellovl_n);
@ -273,6 +274,7 @@ void load_settings(char *section, int do_host, Config * cfg)
gppi(sesskey, "BlinkCur", 0, &cfg->blink_cur);
/* pedantic compiler tells me I can't use &cfg->beep as an int * :-) */
gppi(sesskey, "Beep", 1, &i); cfg->beep = i;
gppi(sesskey, "BeepInd", 0, &i); cfg->beep_ind = i;
gpps(sesskey, "BellWaveFile", "", cfg->bell_wavefile,
sizeof(cfg->bell_wavefile));
gppi(sesskey, "BellOverload", 1, &cfg->bellovl);