command: Implement spawn-tagmask

This commit is contained in:
Marten Ringwelski
2021-01-02 09:43:53 +01:00
committed by Isaac Freund
parent 75588a553c
commit 30ba87fa15
5 changed files with 32 additions and 2 deletions

View File

@ -36,6 +36,17 @@ pub fn setFocusedTags(
}
}
/// Set the spawn tagmask
pub fn spawnTagmask(
allocator: *std.mem.Allocator,
seat: *Seat,
args: []const []const u8,
out: *?[]const u8,
) Error!void {
const tags = try parseTags(allocator, args, out);
seat.focused_output.spawn_tagmask = tags;
}
/// Set the tags of the focused view.
pub fn setViewTags(
allocator: *std.mem.Allocator,