presentation-time: support protocol

This commit is contained in:
Isaac Freund 2023-03-04 23:06:41 +01:00
parent b6ac1021ae
commit cc2b38af92
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -120,6 +120,9 @@ pub fn init(self: *Self) !void {
_ = try wlr.XdgOutputManagerV1.create(server.wl_server, output_layout); _ = try wlr.XdgOutputManagerV1.create(server.wl_server, output_layout);
const presentation = try wlr.Presentation.create(server.wl_server, server.backend);
scene.setPresentation(presentation);
const event_loop = server.wl_server.getEventLoop(); const event_loop = server.wl_server.getEventLoop();
const transaction_timeout = try event_loop.addTimer(*Self, handleTransactionTimeout, self); const transaction_timeout = try event_loop.addTimer(*Self, handleTransactionTimeout, self);
errdefer transaction_timeout.remove(); errdefer transaction_timeout.remove();