make sure to dereference the pointers before accessing their fields

This commit is contained in:
Squibid 2025-10-18 20:57:49 -04:00
parent 5f95b44ac6
commit f500937b96
Signed by: squibid
GPG key ID: BECE5684D3C4005D

View file

@ -52,7 +52,7 @@ event: *wlr.Output.event.RequestState,
pub fn handleFrame(listener: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void { pub fn handleFrame(listener: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void {
const output: *Output = @fieldParentPtr("destroy", listener); const output: *Output = @fieldParentPtr("destroy", listener);
const scene_output = output.*.server.scene.getSceneOutput(wlr_output); const scene_output = output.*.server.*.scene.*.getSceneOutput(wlr_output);
if(scene_output) |so| { if(scene_output) |so| {
std.log.info("Rendering commitin scene output\n", .{}); std.log.info("Rendering commitin scene output\n", .{});