fullscreen mostly implemented

This commit is contained in:
Harrison DiAmbrosio 2025-12-15 23:14:33 -05:00
parent a90c106b8c
commit a5f5bba78e
6 changed files with 47 additions and 26 deletions

View file

@ -196,7 +196,9 @@ pub fn set_focused(L: *zlua.Lua) i32 {
pub fn toggle_fullscreen(L: *zlua.Lua) i32 {
const view_id = LuaUtils.coerceInteger(u64, L.checkInteger(1)) catch view_id_err(L);
std.log.debug("fullscreen view {d}", .{view_id});
if(LuaUtils.viewById(view_id)) |v| {
std.log.debug("toggling fullscreen", .{});
v.toggleFullscreen();
}