diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-19 14:02:42 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-19 14:02:42 +0200 |
| commit | 37a98e1a7aa5be7d6c5803161482be5e9951b931 (patch) | |
| tree | c39297af3afa8b3e352752fe599a9af21480ce9b | |
| parent | 6e23344e06e0318948e49213099be437a2039dfa (diff) | |
| download | river-37a98e1a7aa5be7d6c5803161482be5e9951b931.tar.gz river-37a98e1a7aa5be7d6c5803161482be5e9951b931.tar.xz | |
layout: fix loop counter
The counter should not be incremented if the view was floating.
| -rw-r--r-- | river/Output.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/river/Output.zig b/river/Output.zig index 290530d..cf46230 100644 --- a/river/Output.zig +++ b/river/Output.zig @@ -302,10 +302,11 @@ fn layoutExternal(self: *Self, visible_count: u32, output_tags: u32) !void { // Apply window configuration to views var i: u32 = 0; var view_it = ViewStack(View).pendingIterator(self.views.first, output_tags); - while (view_it.next()) |node| : (i += 1) { + while (view_it.next()) |node| { const view = &node.view; if (view.floating) continue; view.pending_box = view_boxen.items[i]; + i += 1; } } |
