Bug 460181

Summary: Overview won't work with a game in windowed borderless, if compositing is turned off automatically, and mouse will be stuck in fullscreen application
Product: [Plasma] kwin Reporter: Dominic <dominicgluskin>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dominic 2022-10-09 21:51:39 UTC
SUMMARY
***
There's no crash but just nothing will happen which is a bit frustruating, I've tested this with Payday 2 (proton) and Hoi4 (native). 

STEPS TO REPRODUCE
1. Launch hoi4 in borderless borderless with overview turned on and auto turn off compositing on
2. Attempt to use super+w to activate overview, for nothing to happen
3. Launch Payday 2 and repeat step 2, overview will activate, your mouse will appear in overview UNTIL you move it which then it will be forced back into the game window where you can still move the camera around

Expected Result:
A overview similar to gnome or a more interactive alt tab.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS
(available in About System)
KDE Plasma Version:  5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernal Version: 5.19.13-zen1-1-zen (64-bit)
Graphics Platform: X11

If you need anymore info I'll happily share
Comment 1 Nate Graham 2022-10-10 23:15:41 UTC
> if compositing is turned off automatically
Yep, that's how it works. The overview effect is implement as a desktop effect that uses compositing, and so if compositing is turned off, you can't use it.

Two options:
1. Don't let apps turn off compositing (System Settings > Display and Monitor > Compositor > some setting in there)
2. Use the Wayland session where compositing can't be turned off
Comment 2 Dominic 2022-10-12 21:04:17 UTC
(In reply to Nate Graham from comment #1)
> > if compositing is turned off automatically
> Yep, that's how it works. The overview effect is implement as a desktop
> effect that uses compositing, and so if compositing is turned off, you can't
> use it.
> 
> Two options:
> 1. Don't let apps turn off compositing (System Settings > Display and
> Monitor > Compositor > some setting in there)
> 2. Use the Wayland session where compositing can't be turned off

So why does it only affect certain games? Even with gamemode on?
Comment 3 Nate Graham 2022-10-12 21:20:12 UTC
Only some games do it, I guess. Gamemode isn't KDE code, so you might need to ask its developers.