From ea88cca35f29fd4fef9f6fa4035950685fa4a5fd Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 4 Apr 2020 23:26:15 +0200 Subject: Take future borders into account for surface size --- src/root.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/root.zig') 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; -- cgit v1.2.3