feat: hot-reload pointer setting in config

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

View file

@ -2668,6 +2668,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;
@ -2726,6 +2737,7 @@ void reload_config(const Arg *arg) {
reapply_border();
reapply_keyboard();
reapply_pointer();
reapply_master();
reapply_tagrule();