mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
refactored view and output to use the lua aux lib
This commit is contained in:
parent
9fe54377df
commit
3a0a29b55d
5 changed files with 204 additions and 231 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue