VirtualBox

Changeset 2349 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 26, 2007 6:48:12 AM (18 years ago)
Author:
vboxsync
Message:

Fixed the problem with the apple menu bar stealing mouse events from our fullscreen window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r2333 r2349  
    15631563        setMinimumSize (size());
    15641564        setMaximumSize (size());
     1565#ifdef Q_WS_MAC
     1566        /* make the apple menu bar go away. */
     1567        OSStatus orc = SetSystemUIMode (kUIModeAllHidden, kUIOptionDisableAppleMenu);
     1568        if (orc)
     1569            LogRel (("Error: Failed to change UI mode (rc=%#x) when changing to fullscreen mode. (=> menu bar trouble)\n", orc));
     1570#endif
    15651571    }
    15661572    else
    15671573    {
    15681574        /* hide early to avoid extra flicker */
     1575#ifdef Q_WS_MAC
     1576        SetSystemUIMode (kUIModeNormal, 0);
     1577#endif
    15691578        hide();
    15701579        /* reparet to restore normal flags */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette