xfree86: kill INHERIT_LOCK_STATE macro.
I don't know how this survived so long. Google didn't show anything usable related with this.
This commit is contained in:
parent
a3ec226273
commit
2ff7eb4995
|
@ -196,45 +196,6 @@ void
|
|||
ProcessInputEvents ()
|
||||
{
|
||||
int x, y;
|
||||
#ifdef INHERIT_LOCK_STATE
|
||||
static int generation = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* With INHERIT_LOCK_STATE defined, the initial state of CapsLock, NumLock
|
||||
* and ScrollLock will be set to match that of the VT the server is
|
||||
* running on.
|
||||
*/
|
||||
#ifdef INHERIT_LOCK_STATE
|
||||
if (generation != serverGeneration) {
|
||||
xEvent kevent;
|
||||
DevicePtr pKeyboard = xf86Info.pKeyboard;
|
||||
extern unsigned int xf86InitialCaps, xf86InitialNum, xf86InitialScroll;
|
||||
|
||||
generation = serverGeneration;
|
||||
kevent.u.keyButtonPointer.time = GetTimeInMillis();
|
||||
kevent.u.keyButtonPointer.rootX = 0;
|
||||
kevent.u.keyButtonPointer.rootY = 0;
|
||||
kevent.u.u.type = KeyPress;
|
||||
|
||||
|
||||
if (xf86InitialCaps) {
|
||||
kevent.u.u.detail = xf86InitialCaps;
|
||||
(* pKeyboard->processInputProc)(&kevent, (DeviceIntPtr)pKeyboard, 1);
|
||||
xf86InitialCaps = 0;
|
||||
}
|
||||
if (xf86InitialNum) {
|
||||
kevent.u.u.detail = xf86InitialNum;
|
||||
(* pKeyboard->processInputProc)(&kevent, (DeviceIntPtr)pKeyboard, 1);
|
||||
xf86InitialNum = 0;
|
||||
}
|
||||
if (xf86InitialScroll) {
|
||||
kevent.u.u.detail = xf86InitialScroll;
|
||||
(* pKeyboard->processInputProc)(&kevent, (DeviceIntPtr)pKeyboard, 1);
|
||||
xf86InitialScroll = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
mieqProcessInputEvents();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user