Skip to content

Commit

Permalink
Merge pull request #3511 from hacrvlq/wireplumber-fix
Browse files Browse the repository at this point in the history
Accept "default-node-changed" signals from wireplumber, even if only the node ID is changed
  • Loading branch information
Alexays authored Aug 7, 2024
2 parents 79d3a1a + c468119 commit 21906f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/wireplumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ void waybar::modules::Wireplumber::onDefaultNodesApiChanged(waybar::modules::Wir
"[{}]: (onDefaultNodesApiChanged) - got the following default node: Node(name: {}, id: {})",
self->name_, defaultNodeName, defaultNodeId);

if (g_strcmp0(self->default_node_name_, defaultNodeName) == 0) {
if (g_strcmp0(self->default_node_name_, defaultNodeName) == 0 &&
self->node_id_ == defaultNodeId) {
spdlog::debug(
"[{}]: (onDefaultNodesApiChanged) - Default node has not changed. Node(name: {}, id: {}). "
"Ignoring.",
Expand Down

0 comments on commit 21906f0

Please sign in to comment.