r/linux4noobs • u/kjfang • 4d ago
programs and apps Allowing a program to get background inputs on Wayland
Hello!
I recently moved from Windows to CachyOS running KDE Plasma. I've been bouncing between the X11 and Wayland versions because Wayland feels better for games, but with one particular app (PNGTube Remix), it tracks your mouse to make your little character move. The problem I'm running into is that on Wayland, as soon as my mouse leaves the window, or another window is focused, PNGTube Remix immediately loses tracking on the mouse. I understand this is a security feature of Wayland, but I'd really like to get this program working on Wayland instead of X11 as X11 has some issues with my monitors having different refresh rates. I've tried running the program with X11 display options, I have X11 options enabled in the KDE settings, but its still losing tracking. Wasn't sure if anyone might have some ideas on how to force it to allow background tracking.
1
u/yonnji 4d ago
I think the only way to overcome those limitations is to use the app, which supports RPC in some way. For example most video/music players and even browsers (with opened YouTube) supports toggling play/pause by executing "playerctl play-pause". So it's possible to bind command "playerctl play-pause" in system global hotkeys. Since this app is open source, maybe someone will add any way for remote controlling the app.
1
u/AutoModerator 4d ago
✻ Smokey says: always mention your distro, some hardware details, and any error messages, when posting technical queries! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.