summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-12 10:45:14 -0500
committerTingPing <tingping@tingping.se>2012-12-12 10:45:14 -0500
commitc1ccb244dbacb82519c0e0f85c82f8c6898b2cf2 (patch)
treef585d890c43abc033192954326212fd83e50c954 /src/fe-gtk
parentc6d955ade738815ec119ae76db32a3fcc1ac5d72 (diff)
Don't beep when window is active.
Diffstat (limited to 'src/fe-gtk')
-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 f100b895..f589b1b0 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