mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
alt tab and odd -c no focus
This commit is contained in:
parent
1729e10e1d
commit
d4ab71fb35
4 changed files with 22 additions and 18 deletions
|
|
@ -16,6 +16,7 @@ pub fn spawn(L: *zlua.Lua) i32 {
|
|||
}
|
||||
|
||||
L.checkType(1, .string);
|
||||
std.log.debug("GOT HERE", .{});
|
||||
|
||||
const cmd = L.toString(1) catch {
|
||||
L.raiseErrorStr("Lua error check your config", .{});
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ pub fn get_all_ids(L: *zlua.Lua) i32 {
|
|||
|
||||
pub fn get_focused_id(L: *zlua.Lua) i32 {
|
||||
if(server.seat.focused_view) |view| {
|
||||
_ = L.pushNumber(@floatFromInt(view.id));
|
||||
L.pushInteger(@intCast(view.id));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ pub fn set_size(L: *zlua.Lua) i32 {
|
|||
return 0;
|
||||
}
|
||||
|
||||
pub fn raise_to_top(L: *zlua.Lua) i32 {
|
||||
pub fn set_focused(L: *zlua.Lua) i32 {
|
||||
const nargs: i32 = L.getTop();
|
||||
|
||||
if(nargs != 1) {
|
||||
|
|
@ -110,7 +110,7 @@ pub fn raise_to_top(L: *zlua.Lua) i32 {
|
|||
return 0;
|
||||
}
|
||||
|
||||
view.?.raiseToTop();
|
||||
view.?.setFocused();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue