DeviceStateNotify events are generated on EnterWindow and FocusIn for those clients who have selected DeviceState.
See Implementation
DeviceStateNotify events are generated on EnterWindow and FocusIn for those clients who have selected DeviceState.