From caf0d8422ccaae6eb1d5905630f6b955e51e358c Mon Sep 17 00:00:00 2001 From: Roberto Nibali Date: Wed, 8 Jul 2026 09:51:17 +0200 Subject: [PATCH] GUI: send macOS fullscreen Retina autoresize hints When a macOS fullscreen resize reaches the host screen size, invoke the existing guest-resize helper. That helper already converts logical host dimensions to Retina backing dimensions. Signed-off-by: Roberto Nibali --- .../src/runtime/fullscreen/UIMachineViewFullscreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp b/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp index 6f9d06dfe2f5..4f304803e27b 100644 --- a/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp +++ b/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp @@ -77,6 +77,10 @@ bool UIMachineViewFullscreen::eventFilter(QObject *pWatched, QEvent *pEvent) /* Recalculate maximum guest size: */ setMaximumGuestSize(); +#ifdef VBOX_WS_MAC + if (m_fGuestAutoresizeEnabled && uimachine()->isGuestSupportsGraphics()) + sltPerformGuestResize(pResizeEvent->size()); +#endif break; }