I'd suggest trying Gamescope in your particular case
I've found it helps in similiar cases so whenever I face something like that I try that first
Linux Questions
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
I have always had issues with KDE Plasma. On a dual monitor desktop setup, games would either open full screen on the secondary monitor, or an errant click would lead to them dropping out of full screen in a way that was unrecoverable without restarting the game. I had a much better experience with Gnome on that front, and my experience with Hyprland has been perfect. I can swap my game between any number of workspaces and full screen it with super+F.
I had the opposite problem than you. Games would work fine on Wayland but on x11 due to my laptop setup (discrete nvidia, AMD iGPU) games would do pretty much the same thing. if I toggled/tabbed away from a game for more than a couple minutes going back to the game would result in a black screen or just show the desktop but the game itself would still be running and not frozen.
For almost a year I would just trouble shoot it off and on but figured I just had to settle using wayland. Then a linux yuotuber named TheBlackDon suggested that I give gamescope another shot when running games through steam. I had tried it like a year ago and it didn't work so lastnight I decided meh I'll give it another shot. It worked. games work again on x11.
All I can suggest to you is try using gamescope. If it worked on my weird niche laptop setup there's a good chance it might work for you. OR if it works on x11 then maybe just use that? I wanted to get off wayland so bad because there's just so many annoyances getting stuff to work on wayland, even copy and pasting with some programs, that now I'm happy I can finally ditch it.