summary refs log tree commit diff stats
path: root/src/fe-gtk/fe-gtk.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-25 18:28:07 -0800
committerTingPing <tingping@tingping.se>2012-12-25 18:28:07 -0800
commit2e9bf00e0a1f54a6a5a4692517fb91deb250f0e1 (patch)
tree56a1cad259f0e727b7cd6c1c5d6025c09d68624b /src/fe-gtk/fe-gtk.c
parent446d90d8358ee15d69f769973e87d6d97af6e14a (diff)
parentc1ccb244dbacb82519c0e0f85c82f8c6898b2cf2 (diff)
Merge pull request #336 from TingPing/beep
Don't beep when window is active.
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r--src/fe-gtk/fe-gtk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index d0cfd657..57ffa2f6 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -682,9 +682,10 @@ fe_print_text (struct session *sess, char *text, time_t stamp)
 }
 
 void
-fe_beep (void)
+fe_beep (session *sess)
 {
-	gdk_beep ();
+	if (fe_gui_info (sess, 0) != 1)
+		gdk_beep ();
 }
 
 void