mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 06:10:08 +01:00
Properly save and clear the pointer to the internal mode key state data
when the keyboard is initialized, enabled, and disabled. (Takuma
Murakami)
This commit is contained in:
parent
327a13a570
commit
dee29000a6
1 changed files with 3 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ winKeybdBell (int iPercent, DeviceIntPtr pDeviceInt,
|
|||
void
|
||||
winKeybdCtrl (DeviceIntPtr pDevice, KeybdCtrl *pCtrl)
|
||||
{
|
||||
|
||||
g_winInternalModeKeyStatesPtr = &(pDevice->key->state);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -445,11 +445,13 @@ winKeybdProc (DeviceIntPtr pDeviceInt, int iState)
|
|||
|
||||
case DEVICE_ON:
|
||||
pDevice->on = TRUE;
|
||||
g_winInternalModeKeyStatesPtr = &(pDeviceInt->key->state);
|
||||
break;
|
||||
|
||||
case DEVICE_CLOSE:
|
||||
case DEVICE_OFF:
|
||||
pDevice->on = FALSE;
|
||||
g_winInternalModeKeyStatesPtr = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue