aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-27 10:35:53 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-27 10:35:53 +0200
commit2b0b32c030888f74c7ae4198a98f639143e8b6f0 (patch)
treecba57c0f5d59bf8ec0bf00875bcdcee57590e7c0 /src/output.zig
parent809b2eeee1d2eb1d62da19281849167e791b1ad9 (diff)
downloadriver-2b0b32c030888f74c7ae4198a98f639143e8b6f0.tar.gz
river-2b0b32c030888f74c7ae4198a98f639143e8b6f0.tar.xz
Simplify some code
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/output.zig b/src/output.zig
index 91c2b89..7933831 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -143,14 +143,10 @@ pub const Output = struct {
self.arrangeLayers();
}
- pub fn arrange(self: *Self) void {
- self.arrangeViews();
- }
-
/// Arrange all views on the output for the current layout. Modifies only
/// pending state, the changes are not appplied until a transaction is started
/// and completed.
- fn arrangeViews(self: *Self) void {
+ pub fn arrangeViews(self: *Self) void {
// If the output has a zero dimension, trying to arrange would cause
// underflow and is pointless anyway
if (self.usable_box.width == 0 or self.usable_box.height == 0) {