VirtualBox

Changeset 25404 in vbox


Ignore:
Timestamp:
Dec 15, 2009 2:01:43 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56031
Message:

FE/Qt4-OSX: Only change the presentation mode if we are on the primary screen.

File:
1 edited

Legend:

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

    r25319 r25404  
    28322832    if (mIsFullscreen)
    28332833    {
    2834         QString testStr = vboxGlobal().virtualBox().GetExtraData (VBoxDefs::GUI_PresentationModeEnabled).toLower();
    2835         /* Default to false if it is an empty value */
    2836         if (testStr.isEmpty() || testStr == "false")
    2837             SetSystemUIMode (kUIModeAllHidden, 0);
    2838         else
    2839             SetSystemUIMode (kUIModeAllSuppressed, 0);
     2834        /* First check if we are on the primary screen, only than the
     2835           presentation mode have to be changed. */
     2836        QDesktopWidget* pDesktop = QApplication::desktop();
     2837        if (pDesktop->screenNumber(this) == pDesktop->primaryScreen())
     2838        {
     2839            QString testStr = vboxGlobal().virtualBox().GetExtraData (VBoxDefs::GUI_PresentationModeEnabled).toLower();
     2840            /* Default to false if it is an empty value */
     2841            if (testStr.isEmpty() || testStr == "false")
     2842                SetSystemUIMode (kUIModeAllHidden, 0);
     2843            else
     2844                SetSystemUIMode (kUIModeAllSuppressed, 0);
     2845        }
    28402846    }
    28412847    else
Note: See TracChangeset for help on using the changeset viewer.

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