mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
more error handling and oranization
This commit is contained in:
parent
609ee42d66
commit
b328c0a7c7
8 changed files with 81 additions and 51 deletions
|
|
@ -5,6 +5,7 @@ const wl = @import("wayland").server.wl;
|
|||
const wlr = @import("wlroots");
|
||||
|
||||
const View = @import("view.zig");
|
||||
const Utils = @import("utils.zig");
|
||||
|
||||
const server = &@import("main.zig").server;
|
||||
|
||||
|
|
@ -26,7 +27,9 @@ grab_y: f64 = 0,
|
|||
grab_box: wlr.Box = undefined,
|
||||
resize_edges: wlr.Edges = .{},
|
||||
|
||||
pub fn init(self: *Cursor) !void {
|
||||
pub fn init(self: *Cursor) void {
|
||||
errdefer Utils.oomPanic();
|
||||
|
||||
self.* = .{
|
||||
.wlr_cursor = try wlr.Cursor.create(),
|
||||
.x_cursor_manager = try wlr.XcursorManager.create(null, 24),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue