jcs
/wallops
/amendments
/96
chatter: Minor bugfixes
jcs made amendment 96 2 months ago
--- chatter.c Wed Sep 11 21:31:51 2024
+++ chatter.c Thu Sep 12 13:44:49 2024
@@ -130,7 +130,6 @@ chatter_init(const char *server, const unsigned short
focusable_add(focusable);
chatter_update_menu(focusable);
-
chatter_draw_tab_bar(chatter);
chatter_printf(chatter, NULL, NULL,
@@ -405,10 +404,11 @@ chatter_focus_tab(struct chatter *chatter, struct chat
HUnlock(chatter->input_te);
DrawControls(chatter->win);
-
+
chatter_draw_tab_bar(chatter);
- chatter_update_menu(chatter->focusable);
+ if (chatter->focusable)
+ chatter_update_menu(chatter->focusable);
}
void
@@ -417,7 +417,7 @@ chatter_resume(struct focusable *focusable, EventRecor
struct chatter *chatter = (struct chatter *)(focusable->cookie);
focusable_show(focusable);
- InvalRect(chatter->win->visRgn);
+ InvalRect(&chatter->win->portRect);
}
bool
--- main.c Wed Sep 11 18:57:37 2024
+++ main.c Thu Sep 12 13:12:44 2024
@@ -206,8 +206,6 @@ main(void)
}
break;
}
-
- update_menu();
}
break;
}