summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-10-03 12:19:59 +0100
committerColin Guthrie <cguthrie@mandriva.org>2009-10-03 13:09:12 +0100
commitb5b433ee00ef0bf0cba589c57051976f5273907f (patch)
tree7d2c880249ecb0a2dc23360dfe7e8216e43bbd78 /src
parent4f16907f1923afa277ea7267f3ee273243ebe2b4 (diff)
events: Hide output streams with a stream restore designator for the event widget.
Showing these streams causes UI issues due to the repainting when the app that generates the sound events is pavucontrol itself (e.g. changing volume, trying to move stream to a new device etc.)
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 563a615..65455a3 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -457,9 +457,17 @@ finish:
}
void MainWindow::updateSinkInput(const pa_sink_input_info &info) {
+ const char *t;
SinkInputWidget *w;
bool is_new = false;
+ if ((t = pa_proplist_gets(info.proplist, "module-stream-restore.id"))) {
+ if (strcmp(t, "sink-input-by-media-role:event") == 0) {
+ g_debug(_("Ignoring sink-input due to it being designated as an event and thus handled by the Event widget"));
+ return;
+ }
+ }
+
if (sinkInputWidgets.count(info.index))
w = sinkInputWidgets[info.index];
else {