mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 20:57:32 -04:00
hi zach
This commit is contained in:
parent
275f96615b
commit
b67b3a6ec9
2 changed files with 14 additions and 9 deletions
|
|
@ -31,11 +31,16 @@ pub const Output = struct {
|
|||
}
|
||||
|
||||
pub fn handleFrame(_: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void {
|
||||
const scene_output = server.scene.getSceneOutput(wlr_output).?;
|
||||
_ = scene_output.commit(null);
|
||||
const scene_output = server.scene.getSceneOutput(wlr_output);
|
||||
|
||||
if(scene_output) |so| {
|
||||
std.log.info("Rendering commitin scene output\n", .{});
|
||||
_ = so.commit(null);
|
||||
|
||||
var now = posix.clock_gettime(posix.CLOCK.MONOTONIC) catch @panic("CLOCK_MONOTONIC not supported");
|
||||
so.sendFrameDone(&now);
|
||||
}
|
||||
|
||||
var now = posix.clock_gettime(posix.CLOCK.MONOTONIC) catch @panic("CLOCK_MONOTONIC not supported");
|
||||
scene_output.sendFrameDone(&now);
|
||||
}
|
||||
|
||||
pub fn handleRequestState(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue