1
0
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:
Ben Harris
2003-02-04 23:39:26 +00:00
parent be9718cb13
commit a1e2199dc1
4 changed files with 49 additions and 35 deletions

View File

@ -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;