aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-05 18:31:55 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-05 18:31:55 +0200
commitaef2245272a312669b0aba6e8349982dd1d09800 (patch)
tree739d57ecea1ed7283c968c877b1a1e6d8c5f7a40 /src/root.zig
parent259e554921e12cc69ec392927bd56a6cd80895f9 (diff)
downloadriver-aef2245272a312669b0aba6e8349982dd1d09800.tar.gz
river-aef2245272a312669b0aba6e8349982dd1d09800.tar.xz
Implement inner gaps
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 bf714b5..54cdbe5 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -37,6 +37,9 @@ pub const Root = struct {
/// Width of borders in pixels
border_width: u32,
+ /// Width of inner gaps in pixels
+ inner_gap_width: u32,
+
/// Number of pending configures sent in the current transaction.
/// A value of 0 means there is no current transaction.
pending_configures: u32,
@@ -68,6 +71,8 @@ pub const Root = struct {
self.border_width = 4;
+ self.inner_gap_width = 10;
+
self.pending_configures = 0;
self.transaction_timer = null;