Bug 489486

Summary: Shake cursor effect triggers while in fullscreen applications like games
Product: [Plasma] kwin Reporter: leon.halic
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, renner0, yanexbug
Priority: NOR    
Version First Reported In: 6.1.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description leon.halic 2024-06-30 10:59:13 UTC
SUMMARY
I have shake cursor effect enabled (great feature!), and when entering a game in fullscreen mode (not borderless) the effect is still working when moving the mouse quickly. The game I see this happening in is Star Trek Online. I would guess this would affect most games that have a cursor visible in game ( as opposed to when moving mouse around moves the screen).

I am not sure if this is a bug, or intended.

Preferably, shake cursor should not be enabled when playing games in fullscreen mode. 


STEPS TO REPRODUCE
1.  Enable shake cursor effect
2.  Open a game in fullscreen which has a cursor visible (e.g. Star Trek Online)
3. Shake that cursor :)

OBSERVED RESULT
Cursor increases in size while moving in a fullscreen game.

EXPECTED RESULT
While in fullscreen game, shake cursor effect should be disabled.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2024-07-01 10:37:19 UTC
The shake cursor effect will be disabled if the game constrains the cursor. As is, there is no such a thing as game mode so we rely on some heuristics instead.
Comment 2 leon.halic 2024-07-01 11:10:21 UTC
(In reply to Vlad Zahorodnii from comment #1)
> The shake cursor effect will be disabled if the game constrains the cursor.
> As is, there is no such a thing as game mode so we rely on some heuristics
> instead.

So if the shake cursor is still working in-game, it means the game is at fault for not constraining it?

Also, i noticed that sometimes alt-tabbing fixes it or breaks it again. So I am not sure what is going on.
Comment 3 Vlad Zahorodnii 2024-07-01 12:11:23 UTC
Yeah it sounds like the pointer is not properly constrained for some reason
Comment 4 Filip 2024-07-08 17:36:01 UTC
*** Bug 489935 has been marked as a duplicate of this bug. ***