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:
parent
8eec239af6
commit
c87fa2d4af
7 changed files with 1858 additions and 7 deletions
31
src/main.zig
31
src/main.zig
|
|
@ -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...", .{});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue