-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Doesn't sync correctly after use adb shell wm size. #1918
Comments
But if you restart scrcpy, does it have the correct size? AFAIK there is no way to be notified of window size changes. |
yes, it can be corrected by restart scrcpy.
but maybe we can check it evey few seconds? |
Polling is ugly, it's not worth it for a thing which almost never happens in practice. If there is a proper way to be notified by a callback, I'll add it, but no polling. |
well… you are right, unless we hook the wm or adb, or create an Android activity in front end, there may be no way to watch it. |
Refs:
EDIT: no, this method is related to picture-in-picture, it is not triggered when the device resolution changes. |
Environment
Describe the bug
adb shell wm size 1080x2336
oradb shell wm size 1080x1920
terminal 1(scrcpy):
terminal 2(adb wm):
The text was updated successfully, but these errors were encountered: