VirtualBox

Changeset 50801 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 17, 2014 2:23:03 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Multi-screen support: Keep primary display enabled (visible) even if *disable* request came.

File:
1 edited

Legend:

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

    r50490 r50801  
    821821    if (changeType == KGuestMonitorChangedEventType_NewOrigin)
    822822        return;
    823     /* Ignore KGuestMonitorChangedEventType_Disabled event if there is only one window visible: */
     823    /* Ignore KGuestMonitorChangedEventType_Disabled event for primary screen: */
    824824    AssertMsg(countOfVisibleWindows() > 0, ("All machine windows are hidden!"));
    825     if (   changeType == KGuestMonitorChangedEventType_Disabled
    826         && countOfVisibleWindows() == 1
    827         && isScreenVisible(uScreenId))
     825    if (changeType == KGuestMonitorChangedEventType_Disabled && uScreenId == 0)
    828826        return;
    829827
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