summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-19 05:03:31 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-19 05:03:31 +0200
commit47c6d7d189f5a19bd25a28e8f6e1a3fe8dddaccc (patch)
tree68a3f5cb44e7d90813639ab515402d23a7c7745a
parent9a3f806d98381249dc88736b2669c45adfe3bfb7 (diff)
gtk-module: don't generate sound events for undecorated popups
-rw-r--r--src/canberra-gtk-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c
index 3f776b7..aa9ccd3 100644
--- a/src/canberra-gtk-module.c
+++ b/src/canberra-gtk-module.c
@@ -418,7 +418,7 @@ static void dispatch_sound_event(SoundEventData *d) {
}
- if (!played_sound)
+ if (!played_sound && gtk_window_get_decorated(GTK_WINDOW(d->object)))
ret = ca_gtk_play_for_widget(GTK_WIDGET(d->object), 0,
CA_PROP_EVENT_ID, "window-new",
CA_PROP_EVENT_DESCRIPTION, "Window shown",