mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
merged
This commit is contained in:
commit
8cff29c795
5 changed files with 370 additions and 94 deletions
|
|
@ -3,7 +3,7 @@ const std = @import("std");
|
|||
const wl = @import("wayland").server.wl;
|
||||
const wlr = @import("wlroots");
|
||||
|
||||
const Output = @import("output.zig").Output;
|
||||
const Output = @import("output.zig");
|
||||
|
||||
const server = &@import("main.zig").server;
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ fn handleNewOutput(_: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) void {
|
|||
}
|
||||
if (!wlr_output.commitState(&state)) return;
|
||||
|
||||
const new_output = Output.create(wlr_output) catch {
|
||||
const new_output = Output.create(server, wlr_output) catch {
|
||||
std.log.err("failed to allocate new output", .{});
|
||||
wlr_output.destroy();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue