Begin setting up infrastructure for the WM

Mostly just created the very basic Wayland connection needed, but I also
bind to the rwm protocol which is neat.
This commit is contained in:
Ben Buhse 2025-05-06 21:47:22 -05:00
commit c87fa2d4af
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
7 changed files with 1858 additions and 7 deletions

View file

@ -2,8 +2,31 @@
//
// SPDX-License-Identifier: EUPL-1.2
pub fn main() !void {
std.debug.print("All your {s} are belong to us.\n", .{"protocol"});
}
const std = @import("std");
const event_loop = @import("event_loop.zig");
const Backend = @import("Backend.zig");
const log = std.log.scoped(.main);
const usage: []const u8 =
\\usage: beansprout [options]
\\
\\ -i, --image <PATH> TODO TODO TODO TODO
\\ -h, --help TODO TODO TODO TODO
\\ -V, --version TODO TODO TODO TODO
\\
;
pub fn main() !void {
const allocator = std.heap.c_allocator;
// Set up Wayland stuff
var backend = try Backend.init(allocator);
defer backend.deinit();
event_loop.run();
// TODO: REMOVEME
log.debug("Exiting...", .{});
}