opt: support hot reload cursor config

This commit is contained in:
DreamMaoMao
2025-11-18 19:21:19 +08:00
parent 4fda32bf1f
commit 58d5938e14

View File

@@ -3110,6 +3110,12 @@ void reapply_monitor_rules(void) {
}
}
void reapply_cursor_style(void) {
if (cursor_mgr)
wlr_xcursor_manager_destroy(cursor_mgr);
cursor_mgr = wlr_xcursor_manager_create(config.cursor_theme, cursor_size);
}
void reapply_border(void) {
Client *c = NULL;
@@ -3211,6 +3217,7 @@ void reset_option(void) {
set_env();
run_exec();
reapply_cursor_style();
reapply_border();
reapply_keyboard();
reapply_pointer();