Eliminate some magic numbers

This commit is contained in:
Isaac Freund
2020-06-02 17:02:03 +02:00
parent ea7f5d4064
commit 03fc51d8d6
2 changed files with 6 additions and 5 deletions

View File

@ -137,7 +137,7 @@ fn startTransaction(self: *Self) void {
var output_it = self.outputs.first;
while (output_it) |node| : (output_it = node.next) {
const output = &node.data;
var view_it = ViewStack(View).iterator(output.views.first, 0xFFFFFFFF);
var view_it = ViewStack(View).iterator(output.views.first, std.math.maxInt(u32));
while (view_it.next()) |view_node| {
const view = &view_node.view;
// Clear the serial in case this transaction is interrupting a prior one.
@ -222,7 +222,7 @@ fn commitTransaction(self: *Self) void {
output.pending_focused_tags = null;
}
var view_it = ViewStack(View).iterator(output.views.first, 0xFFFFFFFF);
var view_it = ViewStack(View).iterator(output.views.first, std.math.maxInt(u32));
while (view_it.next()) |view_node| {
const view = &view_node.view;
// Ensure that all pending state is cleared