diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-07-06 11:09:23 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-07-06 11:09:23 +0200 |
| commit | 014963612c0d65b96d7d9c5318784e1ee6acb9df (patch) | |
| tree | c233f1fed55c48d6bb4dac88c53dd266723100f2 | |
| parent | 24c0355ba80df78cd16d04fa0eb1428ea78da11c (diff) | |
| download | river-014963612c0d65b96d7d9c5318784e1ee6acb9df.tar.gz river-014963612c0d65b96d7d9c5318784e1ee6acb9df.tar.xz | |
river-status: fix bug sending old output tag state
| -rw-r--r-- | river/Root.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/river/Root.zig b/river/Root.zig index b93ed8a..95ab9db 100644 --- a/river/Root.zig +++ b/river/Root.zig @@ -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; |
