summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {