blob: 33a83fba43f1b24b01611efcdd3474e92d48167c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
const Seat = @import("../seat.zig");
/// Make the focused view float or stop floating, depending on its current
/// state.
pub fn toggleFloat(seat: *Seat, arg: Arg) void {
if (seat.focused_view) |view| {
view.setFloating(!view.floating);
view.output.root.arrange();
}
}
|