Bug 499242 - Random “Remote control requested” dialog appears and steal focus when using Gamepad
Summary: Random “Remote control requested” dialog appears and steal focus when using G...
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 24.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-28 15:12 UTC by ariasuni
Modified: 2025-02-01 14:49 UTC (History)
2 users (show)

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


Attachments

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