aboutsummaryrefslogtreecommitdiff
path: root/src/command/close_view.zig
blob: b0f03b948ef40c48a1a4c56138d7d0379e147e91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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();
    }
}