Bug 505834

Summary: VRR: Moving the mouse in game menus with wine-wayland (mouse cursor visible) causes monitor hz to jump to max and therefore causes flickering
Product: [Plasma] kwin Reporter: bugreports61
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: calvinatorzcraft, linx.system.adm, nate, vejituh14, xerxates
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description bugreports61 2025-06-20 10:28:33 UTC
SUMMARY
Hi,

when you use wine wayland  (happens with wine+wayland or proton-ge + wayland) and you move the mouse in game menus vrr breaks. The monitor hz jumps to the max monitor hz (165hz here) and therefore causes flickering. This does not happen when the mouse cursor is not visible (e.g. ingame in shooters etc..).

Iirc there was a similar issue in the past and was fixed.. The issue is not only happening on kde 6.4 but was happening with later 6.3.x revisions also. So it was reintroduced at same time

This is a kde/kwin issue, Gnome with enabled VRR is not affected.
If you use Xwayland the issue also does not show up.

STEPS TO REPRODUCE
1.  Set adaptive sync to automatic in kde display settings and Install Steam
2.  Install proton-ge 10.4 so that i can be used in steam
3.  Install Hell is Us demo
4. Choose proton-ge 10.4 as compatibility layer
5. User PROTON_ENABLE_WAYLAND %command%  in the start options

OBSERVED RESULT
The monitor is flickering in the game menu when you move the mouse due to the monitor hz jumping from current monitor hz (~100 in my case in the game menu) to 165hz and back.

EXPECTED RESULT
VRR stays working also in game menus when you have a cursor visible and you move the mouse.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 48 GiB of RAM (46.6 GiB usable)
Graphics Processor: AMD Radeon RX 9070 XT

ADDITIONAL INFORMATION
Monitor: Alienware OLED Aw3423DWf
Mesa Version                  : 1:25.1.4-1

Br !
Comment 1 vejituh14 2025-06-25 13:56:44 UTC
This was happening to me as well, on Shadow Tactics: Blades of the Shogun.

I had an update today on Arch to KDE 6.4.1 which seems to have reduced this to barely even there.
Can you check if it fixed it for you, I will say there was also some amd firmware updates on this update.
Comment 2 vejituh14 2025-06-25 13:58:24 UTC
Sorry can't edit comments but just wanted to add it still happens on gamescope when running I assume on xwayland with --adaptive-sync in launch options
Comment 3 bugreports61 2025-06-25 17:16:31 UTC
(In reply to vejituh14 from comment #1)
> This was happening to me as well, on Shadow Tactics: Blades of the Shogun.
> 
> I had an update today on Arch to KDE 6.4.1 which seems to have reduced this
> to barely even there.
> Can you check if it fixed it for you, I will say there was also some amd
> firmware updates on this update.

Can try, and it is not game specific here, Hell is Us demo was just an example cause it is a free demo.
Comment 4 bugreports61 2025-06-25 19:17:39 UTC
(In reply to bugreports61 from comment #3)
> (In reply to vejituh14 from comment #1)
> > This was happening to me as well, on Shadow Tactics: Blades of the Shogun.
> > 
> > I had an update today on Arch to KDE 6.4.1 which seems to have reduced this
> > to barely even there.
> > Can you check if it fixed it for you, I will say there was also some amd
> > firmware updates on this update.
> 
> Can try, and it is not game specific here, Hell is Us demo was just an
> example cause it is a free demo.

and meh, can't start the demo anymore, guess it was removed. So you need another game
Comment 5 calvin 2025-06-30 05:23:45 UTC
can confirm this issue dissapeared after a recent update
Comment 6 bugreports61 2025-07-19 11:49:59 UTC
yeah, seems to be fixed the recent kwin versions.