Add native screensaver support (issue #3764)