aboutsummaryrefslogtreecommitdiff
path: root/src/command/exit_compositor.zig
blob: ff620ee026fe6fdba0b93daba675ba3a047245a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
const c = @import("../c.zig");

const Arg = @import("../command.zig").Arg;
const Seat = @import("../seat.zig").Seat;

/// Exit the compositor, terminating the wayland session.
pub fn exitCompositor(seat: *Seat, arg: Arg) void {
    c.wl_display_terminate(seat.input_manager.server.wl_display);
}