Open Sodium-Aluminate opened 3 years ago
But if you restart scrcpy, does it have the correct size?
AFAIK there is no way to be notified of window size changes.
But if you restart scrcpy, does it have the correct size?
yes, it can be corrected by restart scrcpy.
AFAIK there is no way to be notified of window size changes.
but maybe we can check it evey few seconds?
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.
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):