Skip to content

Conversation

bartsaintgermain
Copy link

For some use-cases we would like to avoid the async behaviour of the key inject event.

To do so the MR does make the inject mode configurable on starting ScrCpy server.

rom1v and others added 2 commits April 3, 2025 08:15
Since Genymobile#5804, controls have been enabled even with --no-window. As a
result, the Android clipboard is synchronized with the computer, causing
SDL to trigger an SDL_CLIPBOARDUPDATE event.

This event is ignored by scrcpy, but it was still transmitted to the
sc_screen instance, even if it had not been initialized.

Fix the issue by calling sc_screen_handle_event() only when a screen
instance exists.

Refs Genymobile#5804 <Genymobile#5804>
Fixes Genymobile#5970 <Genymobile#5970>
@rom1v
Copy link
Collaborator

rom1v commented Apr 16, 2025

For some use-cases

Could you give examples? I have never managed to observe a difference.

@rom1v
Copy link
Collaborator

rom1v commented Jun 5, 2025

Any concrete use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants