diff --git a/src/Output.zig b/src/Output.zig index 6dc999d..2ea8a47 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -369,10 +369,10 @@ pub fn layoutFull(self: *Self, visible_count: u32, output_tags: u32) void { const border_width = self.root.server.config.border_width; const outer_padding = self.root.server.config.outer_padding; - const layout_width = @intCast(u32, self.usable_box.width) - - (outer_padding * 2) - (border_width * 2); - const layout_height = @intCast(u32, self.usable_box.height) - - (outer_padding * 2) - (border_width * 2); + const layout_width = @intCast(u32, self.usable_box.width) - + (outer_padding * 2) - (border_width * 2); + const layout_height = @intCast(u32, self.usable_box.height) - + (outer_padding * 2) - (border_width * 2); const xy_offset = @intCast(i32, outer_padding + border_width); var i: u32 = 0; diff --git a/src/command/layout.zig b/src/command/layout.zig index f895330..f8e21ad 100644 --- a/src/command/layout.zig +++ b/src/command/layout.zig @@ -22,7 +22,6 @@ const Seat = @import("../Seat.zig"); pub fn layout(seat: *Seat, arg: Arg) void { const layout_name = arg.str; - const config = seat.input_manager.server.config; seat.focused_output.layout = seat.focused_output.getLayoutByName(layout_name); seat.focused_output.arrangeViews(); seat.input_manager.server.root.startTransaction();