Skip to content

Make inject mode configurable #6008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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