From 8f3ae92165599460eb7fc31167ccfb118be41cb7 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sat, 17 Dec 2011 15:57:39 +0000 Subject: syscons: provide a first iteration of cngrab/cnungrab implementation - put underlying keyboard(s) into the polling mode for the whole duration of the grab, instead of the previous behavior of going into and out of the polling mode around each polling attempt - ditto for setting K_XLATE mode and enabling a disabled keyboard Inspired by: bde MFC after: 2 months --- sys/dev/syscons/syscons.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/syscons/syscons.h') diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index 7280d8931c509..e88ac431d2841 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -301,7 +301,9 @@ typedef struct scr_stat { void *ts; int status; /* status (bitfield) */ + int grabbed; int kbd_mode; /* keyboard I/O mode */ + int kbd_prev_mode; /* keyboard I/O mode */ int cursor_pos; /* cursor buffer position */ int cursor_oldpos; /* cursor old buffer position */ -- cgit v1.3