You might be using the wrong constant to notify the os that screensaver is running.