layout: fix loop counter
The counter should not be incremented if the view was floating.
This commit is contained in:
parent
6e23344e06
commit
37a98e1a7a
1 changed files with 2 additions and 1 deletions
|
@ -302,10 +302,11 @@ fn layoutExternal(self: *Self, visible_count: u32, output_tags: u32) !void {
|
||||||
// Apply window configuration to views
|
// Apply window configuration to views
|
||||||
var i: u32 = 0;
|
var i: u32 = 0;
|
||||||
var view_it = ViewStack(View).pendingIterator(self.views.first, output_tags);
|
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;
|
const view = &node.view;
|
||||||
if (view.floating) continue;
|
if (view.floating) continue;
|
||||||
view.pending_box = view_boxen.items[i];
|
view.pending_box = view_boxen.items[i];
|
||||||
|
i += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue