Remove unused variable and fix zig fmt

This commit is contained in:
Isaac Freund 2020-05-20 23:00:06 +02:00
parent 7934cbfaea
commit f3bfc59b7d
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -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();