Changeset 6146 in vbox for trunk/src/VBox
- Timestamp:
- Dec 19, 2007 8:58:24 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r5999 r6146 2023 2023 delete list; 2024 2024 2025 #ifdef Q_WS_MAC 2026 if (!aSeamless) 2027 { 2028 /* Make the apple menu bar go away before setMaximumSize! */ 2029 OSStatus orc = SetSystemUIMode (kUIModeAllHidden, kUIOptionDisableAppleMenu); 2030 if (orc) 2031 LogRel (("Error: Failed to change UI mode (rc=%#x) when changing to fullscreen mode. (=> menu bar trouble)\n", orc)); 2032 } 2033 #endif 2034 2025 2035 /* Adjust colors and appearance. */ 2026 2036 erase_color = centralWidget()->eraseColor(); … … 2034 2044 /* Going fullscreen */ 2035 2045 setWindowState (windowState() ^ WindowFullScreen); 2046 #ifdef Q_WS_MAC /* setMask seems to not include the far border pixels. */ 2047 QRect maskRect = dtw->screenGeometry (this); 2048 maskRect.setRight(maskRect.right() + 1); 2049 maskRect.setBottom(maskRect.bottom() + 1); 2050 setMask (maskRect); 2051 #else 2036 2052 setMask (dtw->screenGeometry (this)); 2037 2038 #ifdef Q_WS_MAC2039 if (!aSeamless)2040 {2041 /* Make the apple menu bar go away. */2042 OSStatus orc = SetSystemUIMode (kUIModeAllHidden,2043 kUIOptionDisableAppleMenu);2044 if (orc)2045 LogRel (("Error: Failed to change UI mode (rc=%#x) when changing to fullscreen mode. (=> menu bar trouble)\n", orc));2046 }2047 2053 #endif 2048 2054 … … 2070 2076 #ifdef Q_WS_MAC 2071 2077 if (!aSeamless) 2072 {2073 2078 SetSystemUIMode (kUIModeNormal, 0); 2074 }2075 2079 #endif 2076 2080 … … 2096 2100 } 2097 2101 2102 #ifdef Q_WS_MAC /* wasHidden is wrong on the mac it seems. */ 2103 /** @todo figure out what is really wrong here... */ 2104 if (!wasHidden) 2105 show(); 2106 #else 2098 2107 if (wasHidden) 2099 2108 hide(); 2100 2109 #endif 2101 2110 return true; 2102 2111 }
Note:
See TracChangeset
for help on using the changeset viewer.