mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Allow setting the WM_CLASS X window property as a configuration option
in saved sessions, so that a programmable window manager can distinguish different PuTTYs/pterms on startup and assign them different window management properties. [originally from svn r9078]
This commit is contained in:
@ -499,6 +499,7 @@ void save_open_settings(void *sesskey, Config *cfg)
|
||||
write_setting_i(sesskey, "SerialStopHalfbits", cfg->serstopbits);
|
||||
write_setting_i(sesskey, "SerialParity", cfg->serparity);
|
||||
write_setting_i(sesskey, "SerialFlowControl", cfg->serflow);
|
||||
write_setting_s(sesskey, "WindowClass", cfg->winclass);
|
||||
}
|
||||
|
||||
void load_settings(char *section, Config * cfg)
|
||||
@ -858,6 +859,7 @@ void load_open_settings(void *sesskey, Config *cfg)
|
||||
gppi(sesskey, "SerialStopHalfbits", 2, &cfg->serstopbits);
|
||||
gppi(sesskey, "SerialParity", SER_PAR_NONE, &cfg->serparity);
|
||||
gppi(sesskey, "SerialFlowControl", SER_FLOW_XONXOFF, &cfg->serflow);
|
||||
gpps(sesskey, "WindowClass", "", cfg->winclass, sizeof(cfg->winclass));
|
||||
}
|
||||
|
||||
void do_defaults(char *session, Config * cfg)
|
||||
|
Reference in New Issue
Block a user