a more seamless way to handle this might be to change the C++ item to disable itself when the display is off