scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

When you drag a window under windows, the screen will stop playing

Open cnuicn opened this issue 3 years ago • 7 comments

windows 下拖动窗口的时候,画面会停止播放 When you drag a window under windows, the screen will stop playing

cnuicn avatar Aug 19 '22 15:08 cnuicn

During a resize or a move?

This is probably a SDL issue, but scrcpy uses a workaround:

https://github.com/Genymobile/scrcpy/blob/ed84e18b1ae3e51d368f8c7bc88ba4db088e6855/app/src/screen.c#L310-L320

So both resizing and moving should not freeze the mirroring.

Which scrcpy version do you use? Which windows version?

rom1v avatar Aug 19 '22 15:08 rom1v

用鼠标拖动和移动窗口的时候,画面都会冻结 When you drag and move the window with the mouse, the screen will freeze scrcpy1.24 x64 windows11 x64

cnuicn avatar Aug 19 '22 15:08 cnuicn

I have no access to a Windows machine right now. Could someone on Windows could reproduce/confirm?

rom1v avatar Aug 19 '22 15:08 rom1v

@rom1v I can confirm this. The same thing happens for me on windows 11. I thought that was just the way it worked, didn't realize it was a bug. It would be nice if this could be fixed.

rp1231 avatar Aug 22 '22 22:08 rp1231

Thank you. Now that I have access to a Windows machine, I can reproduce too, even while resizing.

I thought the workaround for this problem in macOS during resize was also effective for Windows.

It looks like a SDL issue, but I have no workaround for this, I can't make the screen refresh even if I call the code to render from the resize/move callback :/

rom1v avatar Aug 28 '22 08:08 rom1v

@rom1v would it be possible to use a different windowing method? For example, When I use qtscrcpy, which is a fork of scrcpy, this issue doesn't occur.

rp1231 avatar Feb 27 '23 07:02 rp1231

It's a bug in SDL. SDL3 might fix the issue, when it's released.

Migrating to Qt is not a plan currently.

rom1v avatar Feb 27 '23 09:02 rom1v