mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-10 13:29:55 -05:00
feat: hot-reload pointer setting in config
This commit is contained in:
parent
8afcde6265
commit
b189d7a2be
2 changed files with 88 additions and 43 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue