From 64a85a42eb50866f47aa12107362fbd37f45c6d6 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Wed, 1 Feb 2023 17:40:51 +0200 Subject: make vertical margin configurable --- src/state.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 6844e56..5f4d8b9 100644 --- a/src/state.rs +++ b/src/state.rs @@ -164,8 +164,11 @@ impl State { layer_surface_cb, ); layer_surface.set_size(conn, 0, self.shared_state.config.height); - layer_surface.set_anchor(conn, self.shared_state.config.position.into()); // Top + Left + Right - layer_surface.set_exclusive_zone(conn, self.shared_state.config.height as i32 + 5); // TODO: make the margin configurable + layer_surface.set_anchor(conn, self.shared_state.config.position.into()); + layer_surface.set_exclusive_zone( + conn, + (self.shared_state.config.height + self.shared_state.config.vertical_margin) as i32, + ); // Note: layer_surface is commited when we receive the scale factor of this output -- cgit v1.3.1