mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue