mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
apply_input_config: restore previous current_input_config
This is important for freeing the proper one at end of block
This commit is contained in:
parent
7dad5cd18c
commit
afca73b6fc
|
@ -70,8 +70,10 @@ void apply_input_config(struct input_config *input) {
|
||||||
list_add(config->input_configs, input);
|
list_add(config->input_configs, input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct input_config *old_input_config = current_input_config;
|
||||||
current_input_config = input;
|
current_input_config = input;
|
||||||
sway_input_manager_apply_input_config(input_manager, input);
|
sway_input_manager_apply_input_config(input_manager, input);
|
||||||
|
current_input_config = old_input_config;
|
||||||
}
|
}
|
||||||
|
|
||||||
void apply_seat_config(struct seat_config *seat) {
|
void apply_seat_config(struct seat_config *seat) {
|
||||||
|
|
Loading…
Reference in a new issue