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:
Dominique Martinet 2017-12-29 11:25:07 +01:00
parent 7dad5cd18c
commit afca73b6fc

View file

@ -70,8 +70,10 @@ void apply_input_config(struct input_config *input) {
list_add(config->input_configs, input);
}
struct input_config *old_input_config = current_input_config;
current_input_config = input;
sway_input_manager_apply_input_config(input_manager, input);
current_input_config = old_input_config;
}
void apply_seat_config(struct seat_config *seat) {