mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 18:17:32 -05:00
Add a level of indirection to make it rather easier to work out which of a
session's windows we're dealing with. [originally from svn r2804]
This commit is contained in:
@ -40,6 +40,14 @@ extern struct mac_gestalts mac_gestalts;
|
||||
#define HAVE_COLOR_QD() (mac_gestalts.qdvers > gestaltOriginalQD)
|
||||
#endif
|
||||
|
||||
/* Every window used by PuTTY has a refCon field pointing to one of these. */
|
||||
typedef struct {
|
||||
struct Session *s;
|
||||
int wtype;
|
||||
} WinInfo;
|
||||
|
||||
#define mac_windowsession(w) (((WinInfo *)GetWRefCon(w))->s)
|
||||
|
||||
typedef struct Session {
|
||||
struct Session *next;
|
||||
struct Session **prev;
|
||||
|
Reference in New Issue
Block a user