transactions: propogate x/y of new box if needed

This commit is contained in:
Isaac Freund 2020-06-08 14:11:52 +02:00
parent 5f2aa02132
commit 7c094420ed
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -158,11 +158,17 @@ fn startTransaction(self: *Self) void {
},
.old_configure => {
self.pending_configures += 1;
view.next_box = null;
std.debug.assert(view.pending_serial != null);
if (view.next_box) |next_box| {
view.pending_box.?.x = next_box.x;
view.pending_box.?.y = next_box.y;
view.next_box = null;
}
},
.noop => {
view.next_box = null;
if (view.next_box) |next_box| {
view.pending_box = view.next_box;
view.next_box = null;
}
std.debug.assert(view.pending_serial == null);
},
}