HomeFreeBSD

vt: more carefully handle vt_allocate_keyboard grab work

Description

vt: more carefully handle vt_allocate_keyboard grab work

vt_allocate_keyboard only needs to unwind the effects of keyboard-grabbing,
rather than any associated vt window action that may have also happened.

Split out the bits that do the keyboard work into *_noswitch equivalents,
and use those in keyboard allocation. This will be less error-prone when a
later change will offer up different window state behavior when the console
is ungrabbed.

Reviewed by: ray
Differential Revision: https://reviews.freebsd.org/D27110

Details

Provenance
kevansAuthored on Dec 31 2020, 4:45 PM
Reviewer
ray
Differential Revision
D27110: vt: fix window switching w.r.t. cngrab/cnungrab
Parents
rG72cf7db3aaf1: lualoader: add loader_conf_dirs support (loader.conf.d)
Branches
Unknown
Tags
Unknown