diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2023-06-20 15:26:29 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-06-20 15:26:29 +0200 |
| commit | 470eb222803a6382fd444e133b675fcc168fbf60 (patch) | |
| tree | 090636adf61e8cd58786a2c0abea035beb1b95dd | |
| parent | 93a567ca945bd1f8a04b6453e59e0dbaeed0fcb3 (diff) | |
| download | river-470eb222803a6382fd444e133b675fcc168fbf60.tar.gz river-470eb222803a6382fd444e133b675fcc168fbf60.tar.xz | |
river-layout: Remove incorrect assertion
This assertion is not correct since removing transaction preemption.
| -rw-r--r-- | river/LayoutDemand.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/river/LayoutDemand.zig b/river/LayoutDemand.zig index a127938..599a642 100644 --- a/river/LayoutDemand.zig +++ b/river/LayoutDemand.zig @@ -98,6 +98,8 @@ pub fn pushViewDimensions(self: *Self, x: i32, y: i32, width: u31, height: u31) /// Apply the proposed layout to the output pub fn apply(self: *Self, layout: *Layout) void { + // Note: output.layout may not be equal to layout here if the layout + // namespace changes while a transactions is inflight. const output = layout.output; // Whether the layout demand succeeds or fails, we are done with it and @@ -152,5 +154,4 @@ pub fn apply(self: *Self, layout: *Layout) void { } } assert(i == self.view_boxen.len); - assert(output.layout == layout); } |
