Mercurial > pidgin.yaz
diff finch/libgnt/wms/irssi.c @ 29302:5a64fd0f740b
irssi wm: Restore the hardware cursor after title updates.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 27 Jan 2010 22:23:30 +0000 |
parents | 88d889b54df4 |
children | 48d2b6d1ab74 |
line wrap: on
line diff
--- 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();