Changeset 5814 in vbox
- Timestamp:
- Nov 22, 2007 1:40:12 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 26242
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r5804 r5814 1048 1048 /* emit a signal about guest was resized */ 1049 1049 emit resizeHintDone(); 1050 1051 /* update geometry after entering fullscreen | seamless */ 1052 if (mainwnd->isTrueFullscreen() || mainwnd->isTrueSeamless()) 1053 updateGeometry(); 1050 1054 1051 1055 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r5803 r5814 655 655 CMachine cmachine = csession.GetMachine(); 656 656 657 show(); 658 657 659 /* restore the position of the window and some options */ 658 660 { … … 813 815 updateAppearanceOf (AllStuff); 814 816 815 show();816 817 817 if (vboxGlobal().settings().autoCapture()) 818 818 vboxProblem().remindAboutAutoCapture(); … … 1009 1009 vmSeamlessAction->setEnabled (mIsSeamless); 1010 1010 vmFullscreenAction->setEnabled (mIsFullscreen); 1011 1012 console->updateGeometry();1013 1011 } 1014 1012 … … 1078 1076 QResizeEvent *re = (QResizeEvent *) e; 1079 1077 1080 if ( (windowState() & WindowMaximized) == 0)1078 if (!isMaximized() && !isTrueFullscreen() && !isTrueSeamless()) 1081 1079 { 1082 1080 normal_size = re->size(); … … 1089 1087 case QEvent::Move: 1090 1088 { 1091 if ((windowState() & (WindowMaximized | WindowMinimized | 1092 WindowFullScreen)) == 0) 1089 if (!isMaximized() && !isTrueFullscreen() && !isTrueSeamless()) 1093 1090 { 1094 1091 normal_pos = pos(); … … 1902 1899 } 1903 1900 1904 /** 1901 /** 1905 1902 * @return @c true if successfully performed the requested operation and false 1906 1903 * otherwise. … … 1910 1907 if (aSeamless) 1911 1908 { 1912 /* Check if it is necessary to enter/leave seamless mode. We assert1913 * here because the corresponding actions must be properly disabled by1914 * the below code to give the user an adequate feedback and prevent1915 * from calling this method. */1916 AssertReturn (aOn && mIsSeamlessSupported && !mIsFullscreen ||1917 !aOn && mIsSeamless,1918 false);1919 1920 1909 /* Check if the Guest Video RAM enough for the seamless mode. */ 1921 1910 QRect screen = QApplication::desktop()->screenGeometry (this); … … 2025 2014 2026 2015 #ifdef Q_WS_WIN32 2027 mPrevRegion = scrGeo;2016 mPrevRegion = dtw->screenGeometry (this); 2028 2017 #endif 2029 2018 … … 2055 2044 /* Going fullscreen */ 2056 2045 setWindowState (windowState() ^ WindowFullScreen); 2046 setMask (dtw->screenGeometry (this)); 2057 2047 2058 2048 #ifdef Q_WS_MAC … … 2140 2130 void VBoxConsoleWnd::vmSeamless (bool aOn) 2141 2131 { 2142 bool ok = toggleFullscreenMode (aOn, true /* aSeamless */); 2143 if (!ok) 2144 { 2145 /* on failure, restore the previous button state */ 2146 vmSeamlessAction->blockSignals (true); 2147 vmSeamlessAction->setOn (!aOn); 2148 vmSeamlessAction->blockSignals (false); 2132 /* check if it is possible to enter/leave seamless mode */ 2133 if (aOn && mIsSeamlessSupported && !mIsFullscreen || 2134 !aOn && mIsSeamless) 2135 { 2136 bool ok = toggleFullscreenMode (aOn, true /* aSeamless */); 2137 if (!ok) 2138 { 2139 /* on failure, restore the previous button state */ 2140 vmSeamlessAction->blockSignals (true); 2141 vmSeamlessAction->setOn (!aOn); 2142 vmSeamlessAction->blockSignals (false); 2143 } 2149 2144 } 2150 2145 }
Note:
See TracChangeset
for help on using the changeset viewer.