Changeset 5643 in vbox
- Timestamp:
- Nov 8, 2007 3:40:18 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r5544 r5643 846 846 /* Make no normalizeGeometry in case we are in manual resize 847 847 * mode or main window is maximized */ 848 if (mainwnd->isMaximized() )848 if (mainwnd->isMaximized() || mainwnd->isFullScreen()) 849 849 return; 850 850 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r5544 r5643 1009 1009 vmSeamlessAction->setEnabled (mIsSeamless); 1010 1010 vmFullscreenAction->setEnabled (mIsFullscreen); 1011 1012 console->updateGeometry(); 1011 1013 } 1012 1014 … … 1990 1992 1991 1993 /* Memorize the maximized state. */ 1992 was_max = isMaximized(); 1994 QDesktopWidget *dtw = QApplication::desktop(); 1995 was_max = isMaximized() && 1996 dtw->availableGeometry().width() == frameSize().width() && 1997 dtw->availableGeometry().height() == frameSize().height(); 1993 1998 1994 1999 /* Save the previous scroll-view minimum size before entering … … 2001 2006 /* let the widget take the whole available desktop space */ 2002 2007 QRect scrGeo = aSeamless ? 2003 QApplication::desktop()->availableGeometry (this) : 2004 QApplication::desktop()->screenGeometry (this); 2008 dtw->availableGeometry (this) : dtw->screenGeometry (this); 2005 2009 2006 2010 /* Calculate the difference region between current mode 2007 2011 * (fullscreen or seamless) and the screen geometry. */ 2008 2012 mStrictedRegion = 2009 QRegion ( QApplication::desktop()->screenGeometry (this)) - scrGeo;2013 QRegion (dtw->screenGeometry (this)) - scrGeo; 2010 2014 2011 2015 /* Setup the shifting spacer to make the console to be aligned on top … … 2043 2047 console->setHScrollBarMode (QScrollView::AlwaysOff); 2044 2048 2045 /* Going fullscreen: 2046 * "normal -> fullscreen" for normal window, 2047 * "maximized -> normal -> fullscreen" for maximized window. 2048 * Going "maximized -> fullscreen" wrong on KDE in both directions. 2049 * Here it does not resize the child window correctly. */ 2050 if (was_max) 2051 showNormal(); 2052 showFullScreen(); 2049 /* Going fullscreen */ 2050 setWindowState (windowState() ^ WindowFullScreen); 2053 2051 2054 2052 #ifdef Q_WS_MAC … … 2105 2103 hidden_children.clear(); 2106 2104 2107 /* Going normal || maximized: 2108 * "fullscreen -> normal" if was normal window, 2109 * "fullscreen -> normal -> maximized" if was maximized window. 2110 * Going "fullscreen -> maximized" wrong on KDE in both directions. 2111 * Here it looses the window frame totally. */ 2112 showNormal(); 2113 if (was_max) 2114 showMaximized(); 2105 /* Going normal || maximized */ 2106 setWindowState (windowState() ^ WindowFullScreen); 2115 2107 2116 2108 qApp->processEvents();
Note:
See TracChangeset
for help on using the changeset viewer.