diff --git a/src/fe-text/mainwindow-activity.c b/src/fe-text/mainwindow-activity.c index 3a084110..7f7a0528 100644 --- a/src/fe-text/mainwindow-activity.c +++ b/src/fe-text/mainwindow-activity.c @@ -20,6 +20,7 @@ #include "module.h" #include "signals.h" +#include "settings.h" #include "gui-windows.h" @@ -32,6 +33,9 @@ static void sig_activity(WINDOW_REC *window) if (!is_window_visible(window) || window->data_level == 0) return; + if (!settings_get_bool("activity_hide_visible")) + return; + window->data_level = 0; g_free_and_null(window->hilight_color); @@ -46,6 +50,7 @@ static void sig_activity(WINDOW_REC *window) void mainwindow_activity_init(void) { + settings_add_bool("lookandfeel", "activity_hide_visible", TRUE); signal_add_first("window hilight", (SIGNAL_FUNC) sig_activity); signal_add_first("window activity", (SIGNAL_FUNC) sig_activity); }