diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2014-08-27 09:34:41 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2014-08-27 09:34:41 +0000 |
commit | ab9f3a65b1ea5f7cec0e61cda01b626a1ead6314 (patch) | |
tree | 1283f731489763e1a5b7d7f15f6b96e0952b366f /sys/dev/vt/vt.h | |
parent | 22464809265beea7b7903c7dbc8989f5a6b585dd (diff) | |
download | FreeBSD-src-ab9f3a65b1ea5f7cec0e61cda01b626a1ead6314.zip FreeBSD-src-ab9f3a65b1ea5f7cec0e61cda01b626a1ead6314.tar.gz |
vt(4): Implement basic support for KDSETMODE ioctl
With the current implementation, this allows an X11 server to tell
the console it switches a particular window in "graphics mode". This
information is used by the mouse handling code to ignore sysmouse events
in the window taken by the X server: only him should receive those
events.
Reported by: flo@, glebius@, kan@
Tested by: flo@
Reviewed by: kan@
MFC after: 1 week
Diffstat (limited to 'sys/dev/vt/vt.h')
-rw-r--r-- | sys/dev/vt/vt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index 89d3de4..2108bdf 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -271,6 +271,7 @@ struct vt_window { #define VWF_VTYLOCK 0x10 /* Prevent window switch. */ #define VWF_MOUSE_HIDE 0x20 /* Disable mouse events processing. */ #define VWF_READY 0x40 /* Window fully initialized. */ +#define VWF_GRAPHICS 0x80 /* Window in graphics mode (KDSETMODE). */ #define VWF_SWWAIT_REL 0x10000 /* Program wait for VT acquire is done. */ #define VWF_SWWAIT_ACQ 0x20000 /* Program wait for VT release is done. */ pid_t vw_pid; /* Terminal holding process */ |