From 1d8f226ca3efe1df8906a63509a163097363f00f Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 20 Feb 2025 12:27:49 +0800 Subject: [PATCH] fix: some config option miss hot reload --- config.conf | 2 +- maomao.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.conf b/config.conf index d9e7557..ebb7b30 100644 --- a/config.conf +++ b/config.conf @@ -19,6 +19,7 @@ scroller_proportion_preset=0.5,0.8,1.0 new_is_master=1 default_mfact=0.55 default_nmaster=1 +smartgaps=0 # Overview Setting hotarea_size=10 @@ -36,7 +37,6 @@ sloppyfocus=1 warpcursor=1 # Appearance -smartgaps=0 gappih=5 gappiv=5 gappoh=10 diff --git a/maomao.c b/maomao.c index 3ec4277..7e7d87d 100644 --- a/maomao.c +++ b/maomao.c @@ -876,7 +876,7 @@ void client_apply_clip(Client *c) { animationScale scale_data; scale_data.width = clip_box.width - 2 * c->bw; - scale_data.height = clip_box.height -2 * c->bw; + scale_data.height = clip_box.height - 2* c->bw; wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); apply_border(c, clip_box, offset); if(c->animation.running) {