File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -403,19 +403,24 @@ extension VMDisplayQemuMetalWindowController {
403
403
func windowDidEnterFullScreen( _ notification: Notification ) {
404
404
isFullScreen = true
405
405
if isFullScreenAutoCapture {
406
- captureMouseToolbarButton. state = . on
407
406
captureMouse ( )
408
407
}
409
408
}
410
409
411
410
func windowDidExitFullScreen( _ notification: Notification ) {
412
411
isFullScreen = false
413
412
if isFullScreenAutoCapture {
414
- captureMouseToolbarButton. state = . off
415
413
releaseMouse ( )
416
414
}
417
415
}
418
416
417
+ override func windowDidBecomeKey( _ notification: Notification ) {
418
+ if isFullScreen && isFullScreenAutoCapture {
419
+ captureMouse ( )
420
+ }
421
+ super. windowDidBecomeKey ( notification)
422
+ }
423
+
419
424
override func windowDidResignKey( _ notification: Notification ) {
420
425
releaseMouse ( )
421
426
super. windowDidResignKey ( notification)
You can’t perform that action at this time.
0 commit comments