Skip to content

Commit

Permalink
enabled view.automaticallyReconfiguresDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Oct 9, 2023
1 parent b3e990e commit 5bd2849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virtualization_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ - (instancetype)initWithVirtualMachine:(VZVirtualMachine *)virtualMachine
VZVirtualMachineView *view = [[[VZVirtualMachineView alloc] init] autorelease];
view.capturesSystemKeys = YES;
view.virtualMachine = _virtualMachine;
if (@available(macOS 14.0, *)) {
// Configure the app to automatically respond to changes in the display size.
view.automaticallyReconfiguresDisplay = YES;
}
_virtualMachineView = view;

// Setup some window configs
Expand Down

0 comments on commit 5bd2849

Please sign in to comment.