Skip to content

Commit

Permalink
Ensure old black windows are removed before creating new ones (#4684)
Browse files Browse the repository at this point in the history
  • Loading branch information
coin3x committed Dec 26, 2023
1 parent feaf4a6 commit 85ed0bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iina/MainWindowController.swift
Expand Up @@ -2564,6 +2564,9 @@ class MainWindowController: PlayerWindowController {
private func blackOutOtherMonitors() {
screens = NSScreen.screens.filter { $0 != window?.screen }

for window in blackWindows {
window.orderOut(self)
}
blackWindows = []

for screen in screens {
Expand Down

0 comments on commit 85ed0bc

Please sign in to comment.