build: work around zig 0.10.0 bug to fix CI
This commit is contained in:
parent
c2ce893dd0
commit
50c6ae245f
@ -297,17 +297,22 @@ pub fn updateCurrent(view: *Self) void {
|
|||||||
}
|
}
|
||||||
xdg_toplevel.configure_state = .idle;
|
xdg_toplevel.configure_state = .idle;
|
||||||
},
|
},
|
||||||
.xwayland_view => |xwayland_view| {
|
// TODO(zig): this capture does not need to be mutable and the if (build_options.xwayland)
|
||||||
if (view.inflight.resizing) {
|
// is unnecessary. However, zig 0.10.0 is buggy and these work around a bug. They are both
|
||||||
view.resizeUpdatePosition(
|
// fixed in zig 0.10.1 and newer but we currently rely on 0.10.0 for FreeBSD CI.
|
||||||
xwayland_view.xwayland_surface.width,
|
.xwayland_view => |*xwayland_view| {
|
||||||
xwayland_view.xwayland_surface.height,
|
if (build_options.xwayland) {
|
||||||
);
|
if (view.inflight.resizing) {
|
||||||
|
view.resizeUpdatePosition(
|
||||||
|
xwayland_view.xwayland_surface.width,
|
||||||
|
xwayland_view.xwayland_surface.height,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
view.inflight.box.width = xwayland_view.xwayland_surface.width;
|
||||||
|
view.inflight.box.height = xwayland_view.xwayland_surface.height;
|
||||||
|
view.pending.box.width = xwayland_view.xwayland_surface.width;
|
||||||
|
view.pending.box.height = xwayland_view.xwayland_surface.height;
|
||||||
}
|
}
|
||||||
view.inflight.box.width = xwayland_view.xwayland_surface.width;
|
|
||||||
view.inflight.box.height = xwayland_view.xwayland_surface.height;
|
|
||||||
view.pending.box.width = xwayland_view.xwayland_surface.width;
|
|
||||||
view.pending.box.height = xwayland_view.xwayland_surface.height;
|
|
||||||
},
|
},
|
||||||
.none => {},
|
.none => {},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user