From 933ad5ab783e6ff9c5910381081c7aedc4cee749 Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:47:18 -0700 Subject: [PATCH] display(qemu): if capture on focus is enabled, capture when vm is started or resumed --- .../macOS/Display/VMDisplayQemuMetalWindowController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Platform/macOS/Display/VMDisplayQemuMetalWindowController.swift b/Platform/macOS/Display/VMDisplayQemuMetalWindowController.swift index c3ad86c15..9c346b992 100644 --- a/Platform/macOS/Display/VMDisplayQemuMetalWindowController.swift +++ b/Platform/macOS/Display/VMDisplayQemuMetalWindowController.swift @@ -150,6 +150,9 @@ class VMDisplayQemuMetalWindowController: VMDisplayQemuWindowController { } super.enterLive() resizeConsoleToolbarItem.isEnabled = false // disable item + if isWindowFocusAutoCapture { + captureMouse() + } } override func enterSuspended(isBusy busy: Bool) {