mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
removed all windows decorations properly, added window closing and compositor exiting as well as view focusing
This commit is contained in:
parent
f636efdfe9
commit
976900ffa6
11 changed files with 289 additions and 117 deletions
|
|
@ -21,10 +21,8 @@ options: struct {
|
|||
},
|
||||
|
||||
pub fn callback(self: *const Keymap, release: bool) void {
|
||||
var lua_ref_idx = self.lua_press_ref_idx;
|
||||
if (release) {
|
||||
lua_ref_idx = self.lua_release_ref_idx;
|
||||
}
|
||||
const lua_ref_idx = if(release) self.lua_release_ref_idx else self.lua_press_ref_idx;
|
||||
|
||||
const t = Lua.state.rawGetIndex(zlua.registry_index, lua_ref_idx);
|
||||
if (t != zlua.LuaType.function) {
|
||||
std.log.err("Failed to call keybind, it doesn't have a callback.", .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue