Open Iss-in opened 8 months ago
That's correct, without a better option, Valent will fallback to the GDK-based clipboard which requires the application to gain focus to acquire the clipboard selection.
For better support, someone will have to contribute a ClipboardAdapter
, maybe backed by something like wl-clipboard. Ideally it would be done in code, but a subprocess would be acceptable, too.
It may be preferable to use the RemoteDesktop portal, and by that path, request access to the Clipboard portal, rather than relying on Wayland protocols here. It's not intended behavior (in the Wayland protocol) to allow any unfocused Wayland client (yes, that includes wl-clipboard, a shell script) to manipulate the clipboard.
Current Behavior
clipboard isnt being synced from pc to android until the valent window is focused via mouse.
Since im facing this issue on sway, this might only be related to sway/wlroots compositor behaviour specifically. i faced a similar issue with firefox where subtitles werent being updated when browser window wasnt focused, which is resolved by now.
linking that issue incase its of any help
https://bugzilla.mozilla.org/show_bug.cgi?id=1770429
Expected Behavior
clipboard should sync to android device the moment its changed.
Desktop
Other (please specify)
Other Desktop
Sway/Wlroots
Operating System
Aech
Installed from
Distribution Package
Version
1.0.0.alpha
Devices
KDE Connect (Android), Valent (Desktop Linux)
Plugins
clipboard
Logs
Screenshots
No response