Skip to content
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

Support multi screen #526

Closed
y4n9b0 opened this issue May 8, 2019 · 10 comments
Closed

Support multi screen #526

y4n9b0 opened this issue May 8, 2019 · 10 comments

Comments

@y4n9b0
Copy link

y4n9b0 commented May 8, 2019

I'm working in Mac OS with multi screen: rmbp + Dell display.
scrcpy(v1.3) works well on the default display of rmbp, but there isn't preview on Dell display.

FYI:

  1. It can receive and act the click event in window, just showing black screen only.
  2. This doesn't happen if multi screen working in mirror mode, it happens while multi screen display side by side.

How could I do to make it works well in second display?
Thanks!

@y4n9b0 y4n9b0 changed the title support multi screen Support multi screen May 8, 2019
@rom1v
Copy link
Collaborator

rom1v commented May 10, 2019

Thank you for your report.

My first thought is that this is a bug in libSDL (like #15), because scrcpy itself does not handle multi-screen, only SDL does.

Which version of SDL do you use?

@roopepal
Copy link

roopepal commented May 10, 2019

Same here: only shows black when I move the window to the external display, and it again starts showing the preview correctly when I move the window back to the rMBP display.

sdl2-config --version says 2.0.9.

Edit: Looking further into this, it indeed is showing the preview even when on the external display, but the preview is incorrectly scaled and/or positioned. For example, making the window very tall brings the preview into the view: a tall image. But this is of course very inconvenient.

@rom1v
Copy link
Collaborator

rom1v commented May 10, 2019

What if you start scrcpy on the secondary display directly?

@roopepal
Copy link

It always starts on the primary display (how do I even start it on the secondary display?), but if I set the external monitor as my primary display it works fine on that and similarly fails when I move the window to the rMBP display. In other words, it works correctly on the display is starts on, and preview positioning fails when moved to the other display.

@y4n9b0
Copy link
Author

y4n9b0 commented May 11, 2019

@rom1v sdl2-config --version 2.0.8

@catinred2
Copy link

same problem here. BUT:

  1. scrcpy window shows alright in my secondary display
  2. the window does not respond mouse event while keyboard event works fine

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2019

@catinred2 If you are on MacOS, see #15.

@catinred2
Copy link

@catinred2 If you are on MacOS, see #15.

yes that is the case

@rom1v
Copy link
Collaborator

rom1v commented Apr 11, 2020

(closing as duplicate of #15)

@rom1v rom1v closed this as completed Apr 11, 2020
@carstenhag
Copy link

@1step2hell and others: If you can, please test #1408 so that this issue gets fixed.

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

No branches or pull requests

5 participants