]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix restoring the kbd_mode part of the keyboard state in grab/ungrab.
authorbde <bde@FreeBSD.org>
Mon, 15 Aug 2016 18:02:37 +0000 (18:02 +0000)
committerbde <bde@FreeBSD.org>
Mon, 15 Aug 2016 18:02:37 +0000 (18:02 +0000)
commit182da8457dc8bad1f589ff960357f28c79001d55
tree36a28f1b5fc8020bba8bb6cff16ce184bd3ae761
parent618ae6469c1a7753db349b7b88dcf95509fd3ac1
Fix restoring the kbd_mode part of the keyboard state in grab/ungrab.
Simply change the mode to K_XLATE using a local variable and use the
grab level as a flag to tell screen switches not to change it again,
so that we don't need to switch scp->kbd_mode.  We did the latter,
but didn't have the complications to update the keyboard mode switch
for every screen switch.  sc->kbd_mode remains at its user setting
for all scp's and ungrabbing restores to it.
sys/dev/syscons/syscons.c
sys/dev/syscons/syscons.h