mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-01 22:58:44 -04:00
feat: hot-reload pointer setting in config
This commit is contained in:
parent
4768ef2c29
commit
43c7007a98
2 changed files with 88 additions and 43 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue