fix type mismatch in moveTab function parameter

This commit is contained in:
axdank
2024-10-25 16:53:13 -03:00
parent de5ec5d83e
commit e7bd60b28e

View File

@ -528,7 +528,7 @@ fn gotoTab(_: *App, target: apprt.Target, tab: apprt.action.GotoTab) void {
} }
} }
fn moveTab(_: *App, target: apprt.Target, position: isize) void { fn moveTab(_: *App, target: apprt.Target, move_tab: apprt.action.MoveTab) void {
switch (target) { switch (target) {
.app => {}, .app => {},
.surface => |v| { .surface => |v| {
@ -540,7 +540,7 @@ fn moveTab(_: *App, target: apprt.Target, position: isize) void {
return; return;
}; };
window.moveTab(v.rt_surface, @intCast(position)); window.moveTab(v.rt_surface, @intCast(move_tab.amount));
}, },
} }
} }