refactored view and output to use the lua aux lib

This commit is contained in:
Harrison DiAmbrosio 2025-11-26 23:48:40 -05:00
parent 9fe54377df
commit 3a0a29b55d
5 changed files with 204 additions and 231 deletions

View file

@ -112,6 +112,14 @@ pub fn setFocused(self: *View) void {
self.focused = true;
}
pub fn close(self: *View) void {
if(self.focused) {
server.seat.focused_view = null;
}
self.xdg_toplevel.sendClose();
}
pub fn setPosition(self: *View, x: i32, y: i32) void {
self.scene_tree.node.setPosition(x, y);
}