Permalink
Browse files

Exit legacy fullscreen when window closes

Ref: #1106
  • Loading branch information...
alejx committed Feb 11, 2019
1 parent 7d4f92d commit 8a9ab6000b1bbe167fcb588f579a62972d3e1058
Showing with 3 additions and 0 deletions.
  1. +3 −0 iina/MainWindowController.swift
@@ -1293,6 +1293,9 @@ class MainWindowController: NSWindowController, NSWindowDelegate {
guard let w = self.window, let cv = w.contentView else { return }
cv.trackingAreas.forEach(cv.removeTrackingArea)
playSlider.trackingAreas.forEach(playSlider.removeTrackingArea)
if case .fullscreen(legacy: true, priorWindowedFrame: let frame) = fsState {
legacyAnimateToWindowed(framePriorToBeingInFullscreen: frame)
}
}

// MARK: - Window delegate: Full screen

0 comments on commit 8a9ab60

Please sign in to comment.