From d1d25d0ee6fbba46b54559ccdd4345f7c88f3f70 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 9 May 2026 19:10:26 +0800 Subject: [PATCH] auto refresh client drop area color when reload config --- src/config/parse_config.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/parse_config.h b/src/config/parse_config.h index 4fa14bf8..207d06f7 100644 --- a/src/config/parse_config.h +++ b/src/config/parse_config.h @@ -3751,7 +3751,7 @@ void reapply_rootbg(void) { wlr_scene_rect_set_color(root_bg, config.rootcolor); } -void reapply_border(void) { +void reapply_property(void) { Client *c = NULL; // reset border width when config change @@ -3760,6 +3760,8 @@ void reapply_border(void) { if (!c->isnoborder && !c->isfullscreen) { c->bw = config.borderpx; } + + wlr_scene_rect_set_color(c->droparea, config.dropcolor); } } } @@ -3905,7 +3907,7 @@ void reset_option(void) { run_exec(); reapply_cursor_style(); - reapply_border(); + reapply_property(); reapply_rootbg(); reapply_keyboard(); reapply_pointer();