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.)
This commit is contained in:
parent
4f16907f19
commit
b5b433ee00
|
@ -457,9 +457,17 @@ finish:
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::updateSinkInput(const pa_sink_input_info &info) {
|
void MainWindow::updateSinkInput(const pa_sink_input_info &info) {
|
||||||
|
const char *t;
|
||||||
SinkInputWidget *w;
|
SinkInputWidget *w;
|
||||||
bool is_new = false;
|
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))
|
if (sinkInputWidgets.count(info.index))
|
||||||
w = sinkInputWidgets[info.index];
|
w = sinkInputWidgets[info.index];
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue