Skip to content

Multiple monitor workaround #26

@fatihkaan22

Description

@fatihkaan22

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions