changeset 28914: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 45123312b7a9
children 8bacc2a70576
files finch/libgnt/wms/irssi.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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();