mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
get the server from the listener before using it
This commit is contained in:
parent
8cff29c795
commit
5f95b44ac6
1 changed files with 4 additions and 2 deletions
|
|
@ -49,8 +49,10 @@ event: *wlr.Output.event.RequestState,
|
|||
}
|
||||
}
|
||||
|
||||
pub fn handleFrame(_: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void {
|
||||
const scene_output = server.scene.getSceneOutput(wlr_output);
|
||||
pub fn handleFrame(listener: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void {
|
||||
const output: *Output = @fieldParentPtr("destroy", listener);
|
||||
|
||||
const scene_output = output.*.server.scene.getSceneOutput(wlr_output);
|
||||
|
||||
if(scene_output) |so| {
|
||||
std.log.info("Rendering commitin scene output\n", .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue