river-status: fix bug sending old output tag state
This commit is contained in:
parent
24c0355ba8
commit
014963612c
@ -214,7 +214,9 @@ fn commitTransaction(self: *Self) void {
|
|||||||
const output = &output_node.data;
|
const output = &output_node.data;
|
||||||
|
|
||||||
// Apply pending state of the output
|
// 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(
|
log.debug(
|
||||||
.output,
|
.output,
|
||||||
"changing current focus: {b:0>10} to {b:0>10}",
|
"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;
|
var it = output.status_trackers.first;
|
||||||
while (it) |node| : (it = node.next) node.data.sendFocusedTags();
|
while (it) |node| : (it = node.next) node.data.sendFocusedTags();
|
||||||
}
|
}
|
||||||
output.current = output.pending;
|
|
||||||
|
|
||||||
var view_tags_changed = false;
|
var view_tags_changed = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user