Wed, 27 Jan 2010 22:23:30 +0000
irssi wm: Restore the hardware cursor after title updates.
| finch/libgnt/wms/irssi.c | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/wms/irssi.c Wed Jan 27 21:29:38 2010 +0000 +++ b/finch/libgnt/wms/irssi.c Wed Jan 27 22:23:30 2010 +0000 @@ -207,11 +207,15 @@ update_conv_window_title(GntNode *node) { char title[256]; + int x, y; snprintf(title, sizeof(title), "%d: %s", GPOINTER_TO_INT(g_object_get_data(G_OBJECT(node->me), "irssi-index")) + 1, GNT_BOX(node->me)->title); + + getyx(node->window, y, x); wbkgdset(node->window, '\0' | COLOR_PAIR(gnt_widget_has_focus(node->me) ? GNT_COLOR_TITLE : GNT_COLOR_TITLE_D)); mvwaddstr(node->window, 0, 0, title); + wmove(node->window, y, x); if (!gnt_is_refugee()) { update_panels(); doupdate();