river-status: fix bug sending old output tag state

This commit is contained in:
Isaac Freund 2020-07-06 11:09:23 +02:00
parent 24c0355ba8
commit 014963612c
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -214,7 +214,9 @@ fn commitTransaction(self: *Self) void {
const output = &output_node.data;
// Apply pending state of the output
if (output.pending.tags != output.current.tags) {
const output_tags_changed = output.pending.tags != output.current.tags;
output.current = output.pending;
if (output_tags_changed) {
log.debug(
.output,
"changing current focus: {b:0>10} to {b:0>10}",
@ -223,7 +225,6 @@ fn commitTransaction(self: *Self) void {
var it = output.status_trackers.first;
while (it) |node| : (it = node.next) node.data.sendFocusedTags();
}
output.current = output.pending;
var view_tags_changed = false;