mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
fix: repeat option miss apply
This commit is contained in:
parent
de3af1e8c6
commit
a7728ce3d7
1 changed files with 13 additions and 0 deletions
|
|
@ -1056,6 +1056,15 @@ void override_config(void) {
|
||||||
gappoh = config.gappoh;
|
gappoh = config.gappoh;
|
||||||
gappov = config.gappov;
|
gappov = config.gappov;
|
||||||
borderpx = config.borderpx;
|
borderpx = config.borderpx;
|
||||||
|
repeat_rate = config.repeat_rate;
|
||||||
|
repeat_delay = config.repeat_delay;
|
||||||
|
tap_to_click = config.tap_to_click;
|
||||||
|
tap_and_drag = config.tap_and_drag;
|
||||||
|
drag_lock = config.drag_lock;
|
||||||
|
natural_scrolling = config.natural_scrolling;
|
||||||
|
disable_while_typing = config.disable_while_typing;
|
||||||
|
left_handed = config.left_handed;
|
||||||
|
middle_button_emulation = config.middle_button_emulation;
|
||||||
|
|
||||||
// 复制颜色数组
|
// 复制颜色数组
|
||||||
memcpy(rootcolor, config.rootcolor, sizeof(rootcolor));
|
memcpy(rootcolor, config.rootcolor, sizeof(rootcolor));
|
||||||
|
|
@ -1173,6 +1182,7 @@ void parse_config(void) {
|
||||||
|
|
||||||
void reload_config(const Arg *arg) {
|
void reload_config(const Arg *arg) {
|
||||||
Client *c;
|
Client *c;
|
||||||
|
Keyboard *kb;
|
||||||
free_config();
|
free_config();
|
||||||
parse_config();
|
parse_config();
|
||||||
init_baked_points();
|
init_baked_points();
|
||||||
|
|
@ -1183,5 +1193,8 @@ void reload_config(const Arg *arg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
wl_list_for_each(kb, &keyboards, link) {
|
||||||
|
wlr_keyboard_set_repeat_info(kb->wlr_keyboard, repeat_rate, repeat_delay);
|
||||||
|
}
|
||||||
arrange(selmon, false);
|
arrange(selmon, false);
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue