Skip to content

Commit

Permalink
Merge pull request #86 from cparish312/timeline_fullscreen
Browse files Browse the repository at this point in the history
Timeline Fullscreen Without Ext Monitor Blackouts
  • Loading branch information
jasonjmcghee authored Apr 26, 2024
2 parents 6e36b21 + 0733e07 commit b2f0a52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rem/TimelineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ class CustomHostingViewController: NSViewController {

func updateContent(image: NSImage?, frame: NSRect, analysis: ImageAnalysis?) {
if let im = image {
let fullScreenOptions = [NSView.FullScreenModeOptionKey.fullScreenModeAllScreens: NSNumber(value: false)]
if !view.isInFullScreenMode {
DispatchQueue.main.async {
self.view.enterFullScreenMode(NSScreen.main!)
self.view.enterFullScreenMode(NSScreen.main!, withOptions: fullScreenOptions)
}
}
updateImage(im, frame: frame)
Expand Down

0 comments on commit b2f0a52

Please sign in to comment.