Changeset 4701 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 11, 2007 11:29:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r4676 r4701 1065 1065 1066 1066 if (!mManualResize && 1067 (windowState() & (WindowMaximized | WindowMinimized | 1068 WindowFullScreen)) == 0) 1067 (windowState() & WindowMaximized) == 0) 1069 1068 { 1070 1069 normal_size = re->size(); … … 2099 2098 setMaximumSize (QSize (QWIDGETSIZE_MAX, QWIDGETSIZE_MAX)); 2100 2099 2101 /* restore previous position and size*/2100 /* check if we are maximized: seamless on some wm == maximized */ 2102 2101 bool is_max = isMaximized(); 2102 2103 /* restore previous position */ 2103 2104 move (normal_pos); 2105 2104 2106 if (was_max) 2107 /* let pass one resize event with previous size */ 2105 2108 mAllowOneResize = true; 2109 else 2110 /* ensure we are waiting for the previous size */ 2111 mAwaitingSize = normal_size; 2112 2113 /* restore previous size */ 2106 2114 resize (normal_size); 2107 2115 qApp->processEvents(); … … 2110 2118 { 2111 2119 if (aSeamless && is_max) 2120 /* if seamless == maximized do delayed maximization */ 2112 2121 mDoMaximize = true; 2113 2122 else 2123 /* restore maximized mode now */ 2114 2124 setWindowState (windowState() | WindowMaximized); 2115 2125 qApp->processEvents();
Note:
See TracChangeset
for help on using the changeset viewer.