diff --git a/dix/events.c b/dix/events.c index 05f99478e..33936bddc 100644 --- a/dix/events.c +++ b/dix/events.c @@ -4323,8 +4323,6 @@ EnterLeaveEvent( /* we don't have enough bytes, so we squash flags and mode into one byte, and use the last byte for the deviceid. */ devEnterLeave = (deviceEnterNotify*)&event; - devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify : - DeviceLeaveNotify; devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify : DeviceLeaveNotify; devEnterLeave->mode |= (event.u.enterLeave.flags << 4);