Update comments; Check river.SeatV1 version; Prepend new windows
This commit is contained in:
parent
46938c238a
commit
137eac9364
5 changed files with 40 additions and 23 deletions
|
|
@ -65,5 +65,19 @@ fn parseRgbaHelper(bytes: [4]u8) RiverColor {
|
|||
};
|
||||
}
|
||||
|
||||
/// Report that the given WaylandGlobal wasn't advertised and exit the program
|
||||
pub fn interfaceNotAdvertised(comptime WaylandGlobal: type) noreturn {
|
||||
log.err("{s} not advertised. Exiting", .{WaylandGlobal.interface.name});
|
||||
std.posix.exit(1);
|
||||
}
|
||||
|
||||
/// Report that the given WaylandGlobal was advertised but the support version was too low exit the program
|
||||
pub fn versionNotSupported(comptime WaylandGlobal: type, have_version: u32, need_version: u32) noreturn {
|
||||
log.err("The compositor only advertised {s} version {d} but version {d} is required. Exiting", .{ WaylandGlobal.interface.name, have_version, need_version });
|
||||
std.posix.exit(1);
|
||||
}
|
||||
|
||||
const std = @import("std");
|
||||
const fmt = std.fmt;
|
||||
|
||||
const log = std.log.scoped(.utils);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue