mirror of
https://github.com/brl/mutter.git
synced 2025-06-06 05:23:59 +00:00

On VT switch, the devices are removed, which means for Wayland disabling the keyboard. When the keyboard is disabled, the associated `xkb_state` is freed and recreated whenever the keyboard is re-enabled when switching back to the compositor VT. That means the `xkb_state` for Wayland is lost whereas the same for clutter is kept, which causes to a discrepancy with locked modifiers on VT switch. To avoid that issue, preserve the XKB info only to dispose it when the keyboard is eventually finalized. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/344 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1185