diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-10 16:49:52 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-10 16:49:52 +0200 |
| commit | bd91bacee9bf7f329d1e8ccdb4121d5f65d03748 (patch) | |
| tree | 9688dc858c1b180c8729803b121a6ce6beca342c /src/root.zig | |
| parent | 86c486bf2dd589f67160b56aef4d4aae66005f77 (diff) | |
| download | river-bd91bacee9bf7f329d1e8ccdb4121d5f65d03748.tar.gz river-bd91bacee9bf7f329d1e8ccdb4121d5f65d03748.tar.xz | |
Implement initial layer shell support
exclusive zones and popups are still TODO
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/root.zig b/src/root.zig index 1878785..6dccf42 100644 --- a/src/root.zig +++ b/src/root.zig @@ -2,6 +2,7 @@ const std = @import("std"); const c = @import("c.zig"); const util = @import("util.zig"); +const Box = @import("box.zig").Box; const Log = @import("log.zig").Log; const Output = @import("output.zig").Output; const Server = @import("server.zig").Server; @@ -205,7 +206,7 @@ pub const Root = struct { const master_height = @divTrunc(layout_height, master_count); const master_height_rem = layout_height % master_count; - view.pending_box = View.Box{ + view.pending_box = Box{ .x = @intCast(i32, outer_padding), .y = @intCast(i32, outer_padding + i * master_height + if (i > 0) master_height_rem else 0), @@ -218,7 +219,7 @@ pub const Root = struct { const slave_height = @divTrunc(layout_height, slave_count); const slave_height_rem = layout_height % slave_count; - view.pending_box = View.Box{ + view.pending_box = Box{ .x = @intCast(i32, outer_padding + master_column_width), .y = @intCast(i32, outer_padding + (i - master_count) * slave_height + if (i > master_count) slave_height_rem else 0), |
