···289289 .buffer = &.{},
290290 .children = &.{},
291291 };
292292+ if (self.draw_cursor) {
293293+ // If we are drawing the cursor, we need to allocate a buffer so that we obscure anything
294294+ // underneath us
295295+ surface.buffer = try vxfw.Surface.createBuffer(ctx.arena, max_size);
296296+ }
292297293298 // Set state
294299 {