Don't reference noXkbExtension when building without XKB. (Bob Terek - Sun

Microsystems)
This commit is contained in:
Alan Coopersmith 2005-11-08 03:12:43 +00:00
parent e73cdba865
commit f5814bf3ff

View File

@ -1029,7 +1029,11 @@ DGAProcessKeyboardEvent (ScreenPtr pScreen, dgaEvent *de, DeviceIntPtr keybd)
inputInfo.pointer->valuator->motionHintWindow = NullWindow;
*kptr |= bit;
keyc->prev_state = keyc->state;
if (noXkbExtension) {
#ifdef XKB
if (noXkbExtension)
#endif
{
for (i = 0, mask = 1; modifiers; i++, mask <<= 1)
{
if (mask & modifiers)
@ -1046,7 +1050,10 @@ DGAProcessKeyboardEvent (ScreenPtr pScreen, dgaEvent *de, DeviceIntPtr keybd)
inputInfo.pointer->valuator->motionHintWindow = NullWindow;
*kptr &= ~bit;
keyc->prev_state = keyc->state;
if (noXkbExtension) {
#ifdef XKB
if (noXkbExtension)
#endif
{
for (i = 0, mask = 1; modifiers; i++, mask <<= 1)
{
if (mask & modifiers) {