backends/native/meta-seat: Sync keyboard LEDs when changing layout

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/633
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2279>
This commit is contained in:
Konstantin Kharlamov 2022-02-10 01:23:48 +03:00 committed by Konstantin Kharlamov
parent 5fa12a9c8e
commit 338eea7a37

View File

@ -3412,6 +3412,8 @@ set_keyboard_layout_index (GTask *task)
seat_impl->layout_idx = idx;
meta_seat_impl_sync_leds_in_impl (seat_impl);
g_rw_lock_writer_unlock (&seat_impl->state_lock);
g_task_return_boolean (task, TRUE);