From b5b433ee00ef0bf0cba589c57051976f5273907f Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 3 Oct 2009 12:19:59 +0100 Subject: 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.) --- src/mainwindow.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 { -- cgit