Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp	(revision 54177)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp	(revision 54178)
@@ -80,4 +80,7 @@
     m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0;
 
+    /* Assign display: */
+    m_display = m_pMachineView->uisession()->display();
+
     /* Initialize critical-section: */
     int rc = RTCritSectInit(&m_critSect);
@@ -244,5 +247,5 @@
     CDisplaySourceBitmap sourceBitmap;
     if (!vboxGlobal().isSeparateProcess())
-        m_pMachineView->session().GetConsole().GetDisplay().QuerySourceBitmap(uScreenId, sourceBitmap);
+        display().QuerySourceBitmap(uScreenId, sourceBitmap);
 
     /* Lock access to frame-buffer: */
@@ -728,7 +731,6 @@
         LONG yOrigin = 0;
         KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
-        CDisplay display = m_pMachineView->uisession()->display();
-        display.GetScreenResolution(m_pMachineView->screenId(),
-                                    ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
+        display().GetScreenResolution(m_pMachineView->screenId(),
+                                      ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
 
         /* Remind user if necessary, ignore text and VGA modes: */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h	(revision 54177)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h	(revision 54178)
@@ -28,4 +28,5 @@
 
 /* COM includes: */
+#include "CDisplay.h"
 #include "CDisplaySourceBitmap.h"
 
@@ -67,4 +68,7 @@
       * @param pMachineView defines machine-view this frame-buffer is bounded to. */
     HRESULT init(UIMachineView *pMachineView);
+
+    /** Returns the copy of the IDisplay wrapper. */
+    CDisplay display() const { return m_display; }
 
     /** Assigns machine-view frame-buffer will be bounded to.
@@ -274,4 +278,6 @@
     int m_iHeight;
 
+    /** Holds the copy of the IDisplay wrapper. */
+    CDisplay m_display;
     /** Source bitmap from IDisplay. */
     CDisplaySourceBitmap m_sourceBitmap;
