From c5832fdc56362afeb75950ffc9077170140afd9f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 9 Jan 2001 21:29:00 +0000 Subject: [PATCH] Fixed, added comment what it does so I wouldn't forget again :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1099 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindow-activity.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/fe-text/mainwindow-activity.c b/src/fe-text/mainwindow-activity.c index cfee615a..3291c322 100644 --- a/src/fe-text/mainwindow-activity.c +++ b/src/fe-text/mainwindow-activity.c @@ -24,22 +24,25 @@ #include "fe-windows.h" #include "gui-windows.h" +/* Don't send window activity if window is already visible in + another mainwindow */ static void sig_activity(WINDOW_REC *window) { - /*GSList *tmp; + GSList *tmp; if (!is_window_visible(window) || window->data_level == 0) return; - window->new_data = 0; + window->data_level = 0; + window->hilight_color = 0; for (tmp = window->items; tmp != NULL; tmp = tmp->next) { WI_ITEM_REC *item = tmp->data; - item->new_data = 0; - item->last_color = 0; + item->data_level = 0; + item->hilight_color = 0; } - signal_stop();*/ + signal_stop(); } void mainwindow_activity_init(void)