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

display-names property doesn't correctly update after moving mpv.net between monitors. #705

Open
Sneakpeakcss opened this issue Sep 1, 2024 · 0 comments

Comments

@Sneakpeakcss
Copy link
Collaborator

Describe the bug

In multi-monitor setup mpv returns the value based on window position, for example: \\.\DISPLAY1, \\.\DISPLAY2 or \\.\DISPLAY1,\\.\DISPLAY2 when the window is between screens. In mpv.net the value is only correct when the window is first created or after it was resized in any way (edge-drag / fullscreen / maximized / minimized).

  • If mpv.net opens on primary monitor then display-names correctly returns \\.DISPLAY1, but after moving it to the secondary screen, it gets stuck on \\.\DISPLAY1,\\.\DISPLAY2 value. Only after the mentioned resizing it will correctly return \\.\DISPLAY2.
  • If mpv.net opens on the secondary screen (screen=1) then the issue is reversed. The same thing happens after refreshing the value with the mentioned 'resizing actions' and then moving the window back to the other screen.

To Reproduce

  1. Open mpv.net and check print-text ${display-names} in the console.
  2. Move the window to a different screen and check the value again.
  3. Resize the window and check it again.

Expected behavior
display-names should correctly return the current position without requiring any additional actions, same as it does in mpv.

Additional context

  1. mpv.net version: Issue persists in current and pre 7.x versions.
  2. Windows version: WIN10 22H2
  3. GPU name: Radeon RX570
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

2 participants