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 |