fix up gtk

This commit is contained in:
Mitchell Hashimoto
2025-12-22 13:38:46 -08:00
parent 99325a3d45
commit 931c6c71f2

View File

@@ -177,7 +177,8 @@ pub const GlobalShortcuts = extern struct {
// We only allow global keybinds that map to exactly a single
// action for now. TODO: remove this restriction
if (leaf.actions.len != 1) continue;
const actions = leaf.actionsSlice();
if (actions.len != 1) continue;
const trigger = if (key.xdgShortcutFromTrigger(
&trigger_buf,
@@ -200,7 +201,7 @@ pub const GlobalShortcuts = extern struct {
try priv.map.put(
alloc,
try alloc.dupeZ(u8, trigger),
leaf.actions[0],
actions[0],
);
}