diff options
author | avg <avg@FreeBSD.org> | 2011-12-17 15:57:39 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2011-12-17 15:57:39 +0000 |
commit | fbf65ae4d96ff39ba7fb93a69693826ee378cd3c (patch) | |
tree | f4ce5ee7915aba4862196e01d66e166c4a6c407f /sys/dev/syscons/syscons.h | |
parent | 34b585c85317ba8042b1a3bb6c3f7ed15617b595 (diff) | |
download | FreeBSD-src-fbf65ae4d96ff39ba7fb93a69693826ee378cd3c.zip FreeBSD-src-fbf65ae4d96ff39ba7fb93a69693826ee378cd3c.tar.gz |
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
Diffstat (limited to 'sys/dev/syscons/syscons.h')
-rw-r--r-- | sys/dev/syscons/syscons.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index 7280d89..e88ac43 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 */ |