Skip to content

Commit

Permalink
Make VMs start in full screen
Browse files Browse the repository at this point in the history
I figured I'd try this to see if it makes VMs start up in full screen.
(I tested it a little bit, and it seems to work.)

This is my initial attempt to look at issue utmapp#4304. However, it definitely
doesn't fix that issue (yet), because it goes from VMs *never* starting
in full screen to *always* starting in full screen.

(I do intend to try a similar patch against the main branch, and
possibly try to develop a proper patch after that. However, my
current build environment has many problems, so I need to recreate
my build environment from scratch before I continue.)
  • Loading branch information
barrykn committed Aug 20, 2022
1 parent 16d0710 commit ce6af9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Platform/macOS/UTMDataExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ extension UTMData {
vmWindows[vm] = unwrappedWindow
unwrappedWindow.showWindow(nil)
unwrappedWindow.window!.makeMain()
unwrappedWindow.window!.toggleFullScreen(nil)
unwrappedWindow.requestAutoStart()
} else {
logger.critical("Failed to create window controller.")
Expand Down

0 comments on commit ce6af9c

Please sign in to comment.