pub fn sync_layer_keyboard(state: &mut AppState)Expand description
Give the keyboard to a layer surface that asks for it exclusively, or, once none does and a layer surface still holds it, back to the window the policy focused (the topmost window without a policy). Run when a layer surface commits or goes away, since that is when its keyboard interactivity changes; without it a shell’s menu or launcher on Wayland would never see a key.