Bug 485840

Summary: Panel attracts the cursor to itself on some fullscreen games
Product: [Plasma] kwin Reporter: Alexey <alexinq6>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: fanzhuyifan, xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Bug demonstration

Description Alexey 2024-04-20 07:28:03 UTC
Created attachment 168709 [details]
Bug demonstration

SUMMARY
This bug report is related to https://bugs.kde.org/show_bug.cgi?id=474488 (maybe).

As in the mentioned bug, this bug affects some full-screen games and is not reproducible on other compositors like Mutter or Hyprland.

Like the previous issue involving the annoying flickering of the full screen game window with the visible system bar (the hidden panel did not caused this behavior), this issue has the same "triggers" but has a different observable result: the cursor moves to the bar (only when system panel is visible too).

There seem to be too many bugs associated with the panel lately, from apps losing focus when there are standalone widgets in the panel, to less detectable bugs like this that can persist for years. As a complete amateur in such questions, I am sincerely interested in why this is even possible.

STEPS TO REPRODUCE
1. Set "Always visible" to panel;
2. Launch game with detectable behavior (for example, HoMM3);
3. Perform “trigger” actions that lead to an issue (see attachments).

OBSERVED RESULT
...

EXPECTED RESULT
...
Comment 1 Alexey 2024-04-20 07:28:58 UTC
An important point: in the demo you can see that some of the triggers of the mentioned bug 474488 still cause windows to flicker.
Comment 2 fanzhuyifan 2024-04-20 23:49:48 UTC
Is this on wayland or x11?
Comment 3 Alexey 2024-04-21 07:18:24 UTC
(In reply to fanzhuyifan from comment #2)
> Is this on wayland or x11?

It's Wayland, but something tells me that it's reproducible regardless of session.
Comment 4 Zamundaaa 2025-10-17 11:20:33 UTC
The panel doesn't have anything to do with cursor warping. It seems like the game is confusing Xwayland's pointer warping heuristics, which should be resolved by http://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2031