mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -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:
@ -3430,6 +3430,9 @@ int pt_main(int argc, char **argv)
|
||||
init_cutbuffers();
|
||||
|
||||
inst->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
if (inst->cfg.winclass[0])
|
||||
gtk_window_set_wmclass(GTK_WINDOW(inst->window),
|
||||
inst->cfg.winclass, inst->cfg.winclass);
|
||||
|
||||
/*
|
||||
* Set up the colour map.
|
||||
|
Reference in New Issue
Block a user