apply_input_config: restore previous `current_input_config`

This is important for freeing the proper one at end of block
master
Dominique Martinet 7 years ago
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…
Cancel
Save