Changeset 38987 in vbox
- Timestamp:
- Oct 13, 2011 3:24:14 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r38981 r38987 113 113 #endif /* VBOX_WITH_VIDEOHWACCEL */ 114 114 ); 115 pMachineView->m_fIsFullscreen = true;116 115 break; 117 116 case UIVisualStateType_Seamless: … … 122 121 #endif /* VBOX_WITH_VIDEOHWACCEL */ 123 122 ); 124 pMachineView->m_fIsFullscreen = true;125 123 break; 126 124 case UIVisualStateType_Scale: … … 167 165 * fullscreen resize hint was sent: */ 168 166 machine.SetExtraData(VBoxDefs::GUI_LastGuestSizeHintWasFullscreen, 169 m_fIsFullscreen? "true" : "");167 isFullscreenOrSeamless() ? "true" : ""); 170 168 } 171 169 … … 234 232 ) 235 233 : QAbstractScrollArea(pMachineWindow->machineWindow()) 236 , m_fIsFullscreen(false)237 234 , m_pMachineWindow(pMachineWindow) 238 235 , m_uScreenId(uScreenId) … … 850 847 #endif /* Q_WS_MAC */ 851 848 852 bool UIMachineView::guestResizeEvent(QEvent *pEvent, bool fFullscreen) 849 bool UIMachineView::guestResizeEvent(QEvent *pEvent, 850 bool fFullscreenOrSeamless) 853 851 { 854 852 /* Some situations require framebuffer resize events to be ignored at all, … … 883 881 884 882 /* Normalize machine-window geometry: */ 885 if (!fFullscreen )883 if (!fFullscreenOrSeamless) 886 884 normalizeGeometry(true /* Adjust Position? */); 887 885 … … 899 897 pEvent->accept(); 900 898 return true; 899 } 900 901 bool UIMachineView::isFullscreenOrSeamless() 902 { 903 UIVisualStateType type = machineLogic()->visualStateType(); 904 return type == UIVisualStateType_Fullscreen 905 || type == UIVisualStateType_Fullscreen; 901 906 } 902 907 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r38981 r38987 71 71 /* Utility signals: */ 72 72 void resizeHintDone(); 73 74 private:75 76 /** Is this a fullscreen-type view? */77 bool m_fIsFullscreen;78 73 79 74 protected slots: … … 158 153 #endif /* Q_WS_MAC */ 159 154 bool guestResizeEvent(QEvent *pEvent, bool fFullscreen); 155 /** Is this a fullscreen-type view? */ 156 bool isFullscreenOrSeamless(); 160 157 161 158 /* Cross-platforms event processors: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r38981 r38987 128 128 /* Send guest-resize hint only if top window resizing to required dimension: */ 129 129 QResizeEvent *pResizeEvent = static_cast<QResizeEvent*>(pEvent); 130 /** @todo why is this here? If it is a workaround131 * for some situation that should be documented. */132 130 if (pResizeEvent->size() != workingArea().size()) 133 131 break;
Note:
See TracChangeset
for help on using the changeset viewer.