Screen Sharing Freezes Fullscreen Applications

When I record or screenshare a fullscreen application, the source application freezes if focused.
I first noticed when trying to stream on vesktop. The game I’m trying to stream freezes. If I go back to vesktop it looks normal, but freezes again once I focus back on the game.

Playing the game in windowed mode prevents this.
But it’s not just games, it’s anything. I shared my browser window and it was fine, but then my browser froze if I forced it to be fullscreen.

And it’s not just vesktop. It happens if I capture a Window with OBS too.
Seems to only happen when using Wayland

Operating System: EndeavourOS
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2

Hi! Just to help rule things in or out, does this issue occur if you boot up using the Nouveau drivers? Only thinking of that because one of the few mentions of something that sounds like your specific issue came up on the NVIDIA forums: Videoplayers freezing in fullscreen under Wayland, Gnome 46, 550.90.07, GTX 1060, Fedora 40 - Linux - NVIDIA Developer Forums

Also happens on AMD GPU.
This happens to me when only one monitor is connected.
When 2 monitors are connected to the GPU, games do not freeze.

When trying to screenshare in the browser or record using OBS the game freezes when focused. (both the browser and OBS use Screen Sharing Portal).
MangoHud shows 0 FPS.

Game works when I choose the whole screen in Screen Sharing Portal instead of the game.
Game also works if I disable fullscreen using KWin “Make Window Fullscreen” shortcut (in-game fullscreen settings don’t change anything).

2D games work fine for some reason? Only 3D games freeze when focused on my machine. Maybe it’s because the games I’ve tested use different game engines?

Fedora 41. Kernel 6.12.8

Ah! It looks like you’re both likely running into the following bug, then: 495287 – PipeWire Screen Capture Freezes Fullscreen Target Applications

The code changes that should resolve that bug were committed to the master repository within the past 24 hours - the KWin folks are working to release that in the upcoming KDE Plasma 6.3 :slight_smile: