aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-04 23:26:15 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-04 23:26:15 +0200
commitea88cca35f29fd4fef9f6fa4035950685fa4a5fd (patch)
tree506eae4985ae0eaf45974a110ce0ad8732ff5733 /src/root.zig
parent149dd488a942188e0cfe3de30032e09e66d1bb6c (diff)
downloadriver-ea88cca35f29fd4fef9f6fa4035950685fa4a5fd.tar.gz
river-ea88cca35f29fd4fef9f6fa4035950685fa4a5fd.tar.xz
Take future borders into account for surface size
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index 9700827..bf714b5 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -34,6 +34,9 @@ pub const Root = struct {
/// Percentage of the total screen that the master section takes up.
master_factor: f64,
+ /// Width of borders in pixels
+ border_width: u32,
+
/// Number of pending configures sent in the current transaction.
/// A value of 0 means there is no current transaction.
pending_configures: u32,
@@ -63,6 +66,8 @@ pub const Root = struct {
self.master_factor = 0.6;
+ self.border_width = 4;
+
self.pending_configures = 0;
self.transaction_timer = null;