layout: assert output state matches layout applied

This is guaranteed to already be set to the layout being committed. It
is set either when a client binds a new layout object or when the user
changes the layout namespace in use.
This commit is contained in:
Isaac Freund 2021-07-25 22:17:40 +02:00
parent a07e5de945
commit eab9c0901a
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -18,6 +18,7 @@
const Self = @This();
const std = @import("std");
const assert = std.debug.assert;
const mem = std.mem;
const wlr = @import("wlroots");
const wayland = @import("wayland");
@ -135,6 +136,6 @@ pub fn apply(self: *Self, layout: *Layout) void {
}
view.applyConstraints();
}
std.debug.assert(i == self.view_boxen.len);
output.pending.layout = layout;
assert(i == self.view_boxen.len);
assert(output.pending.layout == layout);
}