about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--status_bar.c4
-rw-r--r--windows.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/status_bar.c b/status_bar.c
index 182e7843..ac303d39 100644
--- a/status_bar.c
+++ b/status_bar.c
@@ -27,7 +27,6 @@
 
 #include "ui.h"
 #include "util.h"
-#include "preferences.h"
 
 static WINDOW *status_bar;
 static char *message = NULL;
@@ -160,9 +159,6 @@ void status_bar_new(const int win)
     wattroff(status_bar, COLOR_PAIR(3));
     wattroff(status_bar, A_BLINK);
 
-    if (prefs_get_flash())
-        flash();
-
     dirty = TRUE;
 }
 
diff --git a/windows.c b/windows.c
index 94e1bc25..11bd97e4 100644
--- a/windows.c
+++ b/windows.c
@@ -184,6 +184,8 @@ void win_show_incomming_msg(const char * const from, const char * const message)
     } else {
         status_bar_new(win_index);
         _cons_show_incoming_message(short_from, win_index);
+        if (prefs_get_flash())
+            flash();
     }
 
     if (prefs_get_beep())