layer shells do not appear

This commit is contained in:
Harrison DiAmbrosio 2025-12-14 10:25:02 -05:00
parent 49a6ced28e
commit 44f694f916
4 changed files with 10 additions and 9 deletions

View file

@ -64,14 +64,10 @@ pub fn close(L: *zlua.Lua) i32 {
// ---@param x number x position for view
// ---@param y number y position for view
pub fn set_position(L: *zlua.Lua) i32 {
std.log.debug("repositioning", .{});
const view_id: u64 = @intCast(L.checkInteger(1));
const x: i32 = @intFromFloat(@round(L.checkNumber(2)));
const y: i32 = @intFromFloat(@round(L.checkNumber(3)));
std.log.debug("position to set: ({d}, {d})", .{x, y});
const view: ?*View = if (view_id == 0) server.seat.focused_view else server.root.viewById(view_id);
if(view) |v| {
v.setPosition(x, y);