8000 Window not resized when screen changes in legacy full screen mode · Issue #3715 · iina/iina · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Window not resized when screen changes in legacy full screen mode #3715

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

Closed
1 task done
low-batt opened this issue May 4, 2022 · 3 comments
Closed
1 task done

Window not resized when screen changes in legacy full screen mode #3715

low-batt opened this issue May 4, 2022 · 3 comments

Comments

@low-batt
Copy link
Contributor
low-batt commented May 4, 2022

System and IINA version:

  • macOS 12.3.1
  • IINA 1.2.0

Expected behavior:
When IINA is playing in legacy full screen mode on an external monitor and that monitor is disconnected when macOS moves the window to the internal monitor the window should be resized to fit the internal monitor.

Actual behavior:
The window is not resized.

Steps to reproduce:

  • Plug in an external monitor
  • Start IINA
  • Enable Use legacy full screen is in preferences
  • Restart IINA
  • Start playing a video
  • Move the window to the external monitor
  • Under the Video menu select Enter Full Screen
  • Unplug the external monitor
  • The IINA window moves to the internal monitor

At this point if the size of the external monitor differs from the internal monitor the IINA window is not resized to properly fit the internal monitor.

  • MPV does not have this problem.

Legacy full screen is an IINA feature.

How often does this happen?
Every time.

@low-batt low-batt self-assigned this May 4, 2022
low-batt added a commit to low-batt/iina that referenced this issue May 4, 2022
The commit updates MainWindowController to resize the window
appropriately when the screen the window is on changes if in legacy
full screen mode.

The commit in the pull request will:
- Add a method setFrame to Extensions.NSScreen to set a window's
  frame and content view frame to use the full screen
- Add call to setFrame in observer for
  didChangeScreenParametersNotification
@low-batt
Copy link
Contributor Author
low-batt commented May 4, 2022

The commit in the pull request will:

  • Add a method setFrame to Extensions.NSScreen to set a window's frame and content view frame to use the full screen
  • Add call to setFrame in the observer for didChangeScreenParametersNotification

low-batt added a commit to low-batt/iina that referenced this issue May 6, 2022
Rebased and resolved merge conflicts.
Fixed setting of content view height.

The commit updates MainWindowController to resize the window
appropriately when the screen the window is on changes if in legacy
full screen mode.

The commit in the pull request will:
- Add a method setFrame to Extensions.NSScreen to set a window's
  frame and content view frame to use the full screen
- Add call to setFrame in observer for
  didChangeScreenParametersNotification
low-batt added a commit to low-batt/iina that referenced this issue May 7, 2022
Address review comments:
- Rename setFrame to setWindowFrameForLegacyFullScreen
- Move method from Extensions to MainWindowController
- Refactor accordingly
lhc70000 pushed a commit that referenced this issue May 9, 2022
* Fix window not resized when screen changes, #3715

Rebased and resolved merge conflicts.
Fixed setting of content view height.

The commit updates MainWindowController to resize the window
appropriately when the screen the window is on changes if in legacy
full screen mode.

The commit in the pull request will:
- Add a method setFrame to Extensions.NSScreen to set a window's
  frame and content view frame to use the full screen
- Add call to setFrame in observer for
  didChangeScreenParametersNotification

* Fix window not resized when screen changes, #3715

Address review comments:
- Rename setFrame to setWindowFrameForLegacyFullScreen
- Move method from Extensions to MainWindowController
- Refactor accordingly
@low-batt
Copy link
Contributor Author
low-batt commented May 9, 2022

The fix in PR #3719 has been merged into the develop branch.

@low-batt
Copy link
Contributor Author
low-batt 64FE commented May 29, 2022

Closing. Fixed in IINA 1.3.0.

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

1 participant
0