opt: support hot reload cursor config
This commit is contained in:
@@ -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) {
|
void reapply_border(void) {
|
||||||
Client *c = NULL;
|
Client *c = NULL;
|
||||||
|
|
||||||
@@ -3211,6 +3217,7 @@ void reset_option(void) {
|
|||||||
set_env();
|
set_env();
|
||||||
run_exec();
|
run_exec();
|
||||||
|
|
||||||
|
reapply_cursor_style();
|
||||||
reapply_border();
|
reapply_border();
|
||||||
reapply_keyboard();
|
reapply_keyboard();
|
||||||
reapply_pointer();
|
reapply_pointer();
|
||||||
|
|||||||
Reference in New Issue
Block a user