transactions: propogate x/y of new box if needed
This commit is contained in:
parent
5f2aa02132
commit
7c094420ed
@ -158,11 +158,17 @@ fn startTransaction(self: *Self) void {
|
|||||||
},
|
},
|
||||||
.old_configure => {
|
.old_configure => {
|
||||||
self.pending_configures += 1;
|
self.pending_configures += 1;
|
||||||
|
if (view.next_box) |next_box| {
|
||||||
|
view.pending_box.?.x = next_box.x;
|
||||||
|
view.pending_box.?.y = next_box.y;
|
||||||
view.next_box = null;
|
view.next_box = null;
|
||||||
std.debug.assert(view.pending_serial != null);
|
}
|
||||||
},
|
},
|
||||||
.noop => {
|
.noop => {
|
||||||
|
if (view.next_box) |next_box| {
|
||||||
|
view.pending_box = view.next_box;
|
||||||
view.next_box = null;
|
view.next_box = null;
|
||||||
|
}
|
||||||
std.debug.assert(view.pending_serial == null);
|
std.debug.assert(view.pending_serial == null);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user