Skip to content

OS X: Window position after fullscreen #4178

Closed

Description

@mercutiodesign

mpv version and platform

mpv git-992e582

Reproduction steps

  • Move window to the side of a screen so that part of it is out of bounds (Alternatively open a video which is larger than the screen)
  • Go into fullscreen
  • Exit fullscreen
  • The window position has now moved so that it is no longer out of bounds (If the video was larger than the screen the upper left corner is now visible)

Expected behavior

Window gets restored to original position.

Actual behavior

Window is moved.

Issue started appearing after the fullscreen refactoring of a8347eb.
The calculateWindowPositionForScreen function should only be called if the screen changed in my opinion. When I remove the calculations in this method the behavior is restored to what I would expect.

Activity

  1. changed the title [-]OS X: [/-] [+]OS X: Window position after fullscreen[/+] on Feb 22, 2017
  2. Akemi commented on Feb 22, 2017

    @Akemi
    Member

    i think i had a reason why i did this. like a window ending up on a different screen in some circumstances. i will look into it.

  3. added a commit that references this issue on Feb 23, 2017
    2c795c7
  4. Akemi commented on Feb 23, 2017

    @Akemi
    Member

    okay there are a few cases where i need to force the window within the bounds, so i simplified it to always force it within the bounds. anyway i added a more sophisticated logic now that doesn't recalculate the bounds and won't move the window on the same screen if not necessary.

    i took a bit longer since while i tried to fix your issue and get the wished behaviour i found a few errors in the recalculating code and a segfault. anyway if you want to test it try this branch.

  5. added a commit that references this issue on Feb 23, 2017
    2c4fe44
  6. mercutiodesign commented on Feb 25, 2017

    @mercutiodesign
    ContributorAuthor

    Thanks for your work! I used your branch and it has solved the problem for me.
    As far as I can tell everything works as it should but I'm only using a single monitor.

  7. added a commit that references this issue on Feb 27, 2017
    9d549e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions