X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fmacterm.c;h=f308808f079a71042de1ae73cb8050ec493c2055;hb=ac61490a5b9f40a3655d363d5a1014112aae7222;hp=1ff64ac8d1a411f9d914e78df1c3c2c148a7a99e;hpb=709a94e5f27004e3933b022e1f01b96ddf854265;p=PuTTY.git diff --git a/mac/macterm.c b/mac/macterm.c index 1ff64ac8..f308808f 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.77 2004/10/13 11:50:16 simon Exp $ */ +/* $Id$ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -314,7 +314,6 @@ void mac_pollterm(void) Session *s; for (s = sesslist; s != NULL; s = s->next) { - term_out(s->term); term_update(s->term); } } @@ -1043,7 +1042,7 @@ static void mac_activateterm(WindowPtr window, EventRecord *event) Boolean active = (event->modifiers & activeFlag) != 0; s = mac_windowsession(window); - s->term->has_focus = active; + term_set_focus(s->term, active); term_update(s->term); if (active) ShowControl(s->scrollbar); @@ -1158,6 +1157,11 @@ void do_text(Context ctx, int x, int y, wchar_t *text, int len, assert(len <= 1024); + /* SGT, 2004-10-14: I don't know how to support combining characters + * on the Mac. Hopefully the first person to fail this assertion will + * know how to do it better than me... */ + assert(!(attr & TATTR_COMBINING)); + SetPort((GrafPtr)GetWindowPort(s->window)); fontwidth = s->font_width;