-
Notifications
You must be signed in to change notification settings - Fork 24
Multiple monitor workaround #26
Description
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;
Line 1539 in 08ffbcf
| x = (config.screen_width/2) - (w/2) |
Line 1669 in 08ffbcf
| x = (config.screen_width/2) - (w/2) |
Line 1672 in 08ffbcf
| if x+w > config.screen_width: |
Line 1673 in 08ffbcf
| x = config.screen_width - w |