river/src/command/close_view.zig

12 lines
268 B
Zig
Raw Normal View History

2020-04-18 04:41:04 -07:00
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
const Seat = @import("../seat.zig").Seat;
/// Close the focused view, if any.
pub fn close_view(seat: *Seat, arg: Arg) void {
if (seat.focused_view) |view| {
view.close();
}
}