feat: hot-reload pointer setting in config

This commit is contained in:
DreamMaoMao 2025-09-03 12:48:02 +08:00
parent 8afcde6265
commit b189d7a2be
2 changed files with 88 additions and 43 deletions

View file

@ -2537,6 +2537,17 @@ void reapply_keyboard(void) {
}
}
void reapply_pointer(void) {
struct input_device *id;
struct libinput_device *device;
wl_list_for_each(id, &pointers, link) {
device = id->libinput_device;
if (wlr_input_device_is_libinput(id->wlr_device) && device) {
configure_pointer(device);
}
}
}
void reapply_master(void) {
int i;
@ -2594,6 +2605,7 @@ void reload_config(const Arg *arg) {
reapply_border();
reapply_keyboard();
reapply_pointer();
reapply_master();
reapply_tagrule();