|
Lines 164-169
typedef struct x_IHRec {
Link Here
|
| 164 |
InputHandlerProc ihproc; |
164 |
InputHandlerProc ihproc; |
| 165 |
pointer data; |
165 |
pointer data; |
| 166 |
Bool enabled; |
166 |
Bool enabled; |
|
|
167 |
Bool is_input; |
| 167 |
struct x_IHRec * next; |
168 |
struct x_IHRec * next; |
| 168 |
} IHRec, *IHPtr; |
169 |
} IHRec, *IHPtr; |
| 169 |
|
170 |
|
|
Lines 1526-1533
xf86VTSwitch()
Link Here
|
| 1526 |
for (i = 0; i < xf86NumScreens; i++) |
1527 |
for (i = 0; i < xf86NumScreens; i++) |
| 1527 |
xf86Screens[i]->LeaveVT(i, 0); |
1528 |
xf86Screens[i]->LeaveVT(i, 0); |
| 1528 |
|
1529 |
|
| 1529 |
for (ih = InputHandlers; ih; ih = ih->next) |
1530 |
for (ih = InputHandlers; ih; ih = ih->next) { |
| 1530 |
xf86DisableInputHandler(ih); |
1531 |
if (ih->is_input) |
|
|
1532 |
xf86DisableInputHandler(ih); |
| 1533 |
else |
| 1534 |
xf86DisableGeneralHandler(ih); |
| 1535 |
} |
| 1531 |
xf86AccessLeave(); /* We need this here, otherwise */ |
1536 |
xf86AccessLeave(); /* We need this here, otherwise */ |
| 1532 |
xf86AccessLeaveState(); /* console won't be restored */ |
1537 |
xf86AccessLeaveState(); /* console won't be restored */ |
| 1533 |
|
1538 |
|
|
Lines 1563-1571
xf86VTSwitch()
Link Here
|
| 1563 |
pInfo = pInfo->next; |
1568 |
pInfo = pInfo->next; |
| 1564 |
} |
1569 |
} |
| 1565 |
#endif /* !__UNIXOS2__ */ |
1570 |
#endif /* !__UNIXOS2__ */ |
| 1566 |
for (ih = InputHandlers; ih; ih = ih->next) |
1571 |
for (ih = InputHandlers; ih; ih = ih->next) { |
| 1567 |
xf86EnableInputHandler(ih); |
1572 |
if (ih->is_input) |
| 1568 |
|
1573 |
xf86EnableInputHandler(ih); |
|
|
1574 |
else |
| 1575 |
xf86EnableGeneralHandler(ih); |
| 1576 |
} |
| 1569 |
xf86UnblockSIGIO(prevSIGIO); |
1577 |
xf86UnblockSIGIO(prevSIGIO); |
| 1570 |
|
1578 |
|
| 1571 |
} else { |
1579 |
} else { |
|
Lines 1626-1633
xf86VTSwitch()
Link Here
|
| 1626 |
} |
1634 |
} |
| 1627 |
#endif /* !__UNIXOS2__ */ |
1635 |
#endif /* !__UNIXOS2__ */ |
| 1628 |
|
1636 |
|
| 1629 |
for (ih = InputHandlers; ih; ih = ih->next) |
1637 |
for (ih = InputHandlers; ih; ih = ih->next) { |
| 1630 |
xf86EnableInputHandler(ih); |
1638 |
if (ih->is_input) |
|
|
1639 |
xf86EnableInputHandler(ih); |
| 1640 |
else |
| 1641 |
xf86EnableGeneralHandler(ih); |
| 1642 |
} |
| 1631 |
|
1643 |
|
| 1632 |
xf86UnblockSIGIO(prevSIGIO); |
1644 |
xf86UnblockSIGIO(prevSIGIO); |
| 1633 |
} |
1645 |
} |
|
Lines 1664-1671
xf86AddInputHandler(int fd, InputHandler
Link Here
|
| 1664 |
{ |
1676 |
{ |
| 1665 |
IHPtr ih = addInputHandler(fd, proc, data); |
1677 |
IHPtr ih = addInputHandler(fd, proc, data); |
| 1666 |
|
1678 |
|
| 1667 |
if (ih) |
1679 |
if (ih) { |
| 1668 |
AddEnabledDevice(fd); |
1680 |
AddEnabledDevice(fd); |
|
|
1681 |
ih->is_input = TRUE; |
| 1682 |
} |
| 1669 |
return ih; |
1683 |
return ih; |
| 1670 |
} |
1684 |
} |
| 1671 |
|
1685 |
|