Bug 499242

Summary: Random “Remote control requested” dialog appears and steal focus when using Gamepad
Product: [Applications] kdeconnect Reporter: ariasuni <aria>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes, nicolas.fella
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ariasuni 2025-01-28 15:12:58 UTC
SUMMARY
When I’m using a Gamepad, I sometimes get “Remote control requested” dialog, the one which usually appear when I’m trying to use remote control with KDE Connect installed on my Android device.
It happens either when I’m playing a video game, or when I’m using my gamepad to control mpv.
I wasn’t able to find a clear pattern of why or when it happens.

STEPS TO REPRODUCE
1. Use Gamepad for some time

OBSERVED RESULT
The dialog steals the focus from my game and I lose 😢 or appears on top of my media player and I can’t watch my TV show without getting up from my couch 😢

EXPECTED RESULT
The dialog doesn’t appear for nothing (also it would be nicer if it was a notification instead)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 ariasuni 2025-01-28 15:39:55 UTC
I forgot to add, the problem happens with two different gamepads, one wired and one USB-dongle-wireless.
Comment 2 Nicolas Fella 2025-02-01 14:49:19 UTC
This isn't really related to KDE Connect, is it?

afaik this happens because something in Steam is using xtest to inject fake input events into the system, which lands in the remote desktop system triggering the prompt.

It's a known thing, but I can't find any concrete bugreport about it right now (only https://bugs.kde.org/show_bug.cgi?id=490666 which is somewhat related)