layout: fix loop counter

The counter should not be incremented if the view was floating.
This commit is contained in:
Isaac Freund 2020-06-19 14:02:42 +02:00
parent 6e23344e06
commit 37a98e1a7a
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -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;
}
}