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

Multiple monitor workaround #26

Closed
fatihkaan22 opened this issue May 14, 2020 · 1 comment
Closed

Multiple monitor workaround #26

fatihkaan22 opened this issue May 14, 2020 · 1 comment

Comments

@fatihkaan22
Copy link

On multiple monitors, no matter where the mpv window is, subtitles appers on the very left monitor. (For horizontal monitor setup, I guess it would be very bottom in a vertical setup)

So I came up with 2 workarounds, first one is simple one; adding two config entries left_padding and bottom_padding so that user can modify the position of subtitle.

Other one is getting all the screens with QApplication(...).screens(), getting screen choice from config file and calculating left padding. But I don't know if we can get the positions of the screens.

For now I have tested adding extra left padding works with both subtitle and popup for following x values;

x = (config.screen_width/2) - (w/2)

x = (config.screen_width/2) - (w/2)

if x+w > config.screen_width:

x = config.screen_width - w

@oltodosel
Copy link
Owner

I'm just sticking this issue with your solutions to the README.

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

No branches or pull requests

2 participants