diff options
author | marha <marha@users.sourceforge.net> | 2009-12-14 10:22:19 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-12-14 10:22:19 +0000 |
commit | 9b17452909d3140fa33a753cadfaa6e9006b9685 (patch) | |
tree | 4abbb4b660ee9125cb0c20dab5a1c8de9f5a4a2d /xorg-server/xkb/xkbLEDs.c | |
parent | 75d2bbcf0f39b9c85bc270728343f61dabebce2d (diff) | |
download | vcxsrv-9b17452909d3140fa33a753cadfaa6e9006b9685.tar.gz vcxsrv-9b17452909d3140fa33a753cadfaa6e9006b9685.tar.bz2 vcxsrv-9b17452909d3140fa33a753cadfaa6e9006b9685.zip |
Git update 14/12/2009
Diffstat (limited to 'xorg-server/xkb/xkbLEDs.c')
-rw-r--r-- | xorg-server/xkb/xkbLEDs.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xorg-server/xkb/xkbLEDs.c b/xorg-server/xkb/xkbLEDs.c index 59cdba416..6ca80d784 100644 --- a/xorg-server/xkb/xkbLEDs.c +++ b/xorg-server/xkb/xkbLEDs.c @@ -745,12 +745,14 @@ XkbFlushLedEvents( DeviceIntPtr dev, XkbDDXAccessXBeep(dev, _BEEP_LED_OFF, XkbAccessXFeedbackMask); } } - if (ed && (ed->reason)) { - if ((dev!=kbd)&&(ed->reason&XkbXI_IndicatorStateMask)) - XkbDDXUpdateDeviceIndicators(dev,sli,sli->effectiveState); - XkbSendExtensionDeviceNotify(dev,cause->client,ed); + if (ed) { + if (ed->reason) { + if ((dev!=kbd)&&(ed->reason&XkbXI_IndicatorStateMask)) + XkbDDXUpdateDeviceIndicators(dev,sli,sli->effectiveState); + XkbSendExtensionDeviceNotify(dev,cause->client,ed); + } + bzero((char *)ed,sizeof(XkbExtensionDeviceNotify)); } - bzero((char *)ed,sizeof(XkbExtensionDeviceNotify)); return; } |