VirtualBox

Changeset 27174 in vbox


Ignore:
Timestamp:
Mar 8, 2010 4:00:40 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58518
Message:

FE/Qt4: New running VM core: support storing window(s) positions for multi-monitor feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r27130 r27174  
    479479    /* Load extra-data settings: */
    480480    {
    481         QString strPositionSettings = machine.GetExtraData(VBoxDefs::GUI_LastWindowPosition);
     481        QString strPositionAddress = m_uScreenId == 0 ? QString("%1").arg(VBoxDefs::GUI_LastWindowPosition) :
     482                                     QString("%1%2").arg(VBoxDefs::GUI_LastWindowPosition).arg(m_uScreenId);
     483        QString strPositionSettings = machine.GetExtraData(strPositionAddress);
    482484
    483485        bool ok = false, max = false;
     
    558560        if (isMaximized())
    559561            strWindowPosition += QString(",%1").arg(VBoxDefs::GUI_LastWindowPosition_Max);
    560         machine.SetExtraData(VBoxDefs::GUI_LastWindowPosition, strWindowPosition);
     562        QString strPositionAddress = m_uScreenId == 0 ? QString("%1").arg(VBoxDefs::GUI_LastWindowPosition) :
     563                                     QString("%1%2").arg(VBoxDefs::GUI_LastWindowPosition).arg(m_uScreenId);
     564        machine.SetExtraData(strPositionAddress, strWindowPosition);
    561565    }
    562566}
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