aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-07-25 22:17:40 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-07-25 22:17:40 +0200
commiteab9c0901ab09040f362559d33e0391708c6db11 (patch)
tree756cc08832bbf48509f19e1f9c365b42ccfed139
parenta07e5de9452b1025e296dcdf5c1d4c7fddf53163 (diff)
downloadriver-eab9c0901ab09040f362559d33e0391708c6db11.tar.gz
river-eab9c0901ab09040f362559d33e0391708c6db11.tar.xz
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.
-rw-r--r--river/LayoutDemand.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/river/LayoutDemand.zig b/river/LayoutDemand.zig
index 41f4a94..a14fcbe 100644
--- a/river/LayoutDemand.zig
+++ b/river/LayoutDemand.zig
@@ -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);
}