Bug 489486 - Shake cursor effect triggers while in fullscreen applications like games
Summary: Shake cursor effect triggers while in fullscreen applications like games
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: 6.1.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 489935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-30 10:59 UTC by leon.halic
Modified: 2025-07-21 22:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***