Screensaver does not lock with webcam on

The title says it all. I am using wayland with Fedora 36 and cheese for a security camera. It seems I have to stop cheese for the screen lock timer to work, otherwise it will stay unlocked indefinitely.