Changeset 52303 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 6, 2014 5:19:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52300 r52303 29 29 #include "UIMultiScreenLayout.h" 30 30 #include "UIShortcutPool.h" 31 #include "UIMachineView.h" 31 32 #include "QIMenu.h" 32 33 #ifdef Q_WS_MAC … … 145 146 m_fullscreenMachineWindows.insert(pMachineWindow); 146 147 AssertReturnVoid(m_fullscreenMachineWindows.contains(pMachineWindow)); 148 149 /* Revalidate native fullscreen: */ 150 revalidateNativeFullScreen(); 147 151 } 148 152 … … 186 190 (int)pMachineWindow->screenId())); 187 191 188 /* Exclude window from invalidation list: */192 /* Exclude machine-window from invalidation set: */ 189 193 m_invalidFullscreenMachineWindows.remove(pMachineWindow); 190 191 /* Revalidate 'fullscreen' window: */ 192 revalidateNativeFullScreen(pMachineWindow); 194 AssertReturnVoid(!m_invalidFullscreenMachineWindows.contains(pMachineWindow)); 195 196 /* Revalidate native fullscreen: */ 197 revalidateNativeFullScreen(); 193 198 } 194 199 /* If there are no invalidated windows: */ … … 383 388 setPresentationModeEnabled(true); 384 389 } 385 /* Revalidate 'fullscreen' windowsfor ML and next: */390 /* Revalidate native fullscreen for ML and next: */ 386 391 else revalidateNativeFullScreen(); 387 392 #else /* !Q_WS_MAC */ … … 405 410 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) 406 411 UIMachineLogic::sltGuestMonitorChange(changeType, uScreenId, screenGeo); 407 /* Revalidate 'fullscreen' windowsfor ML and next: */412 /* Revalidate native fullscreen for ML and next: */ 408 413 else revalidateNativeFullScreen(); 409 414 #else /* !Q_WS_MAC */ … … 424 429 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) 425 430 UIMachineLogic::sltHostScreenCountChange(); 426 /* Revalidate 'fullscreen' windowsfor ML and next: */431 /* Revalidate native fullscreen for ML and next: */ 427 432 else revalidateNativeFullScreen(); 428 433 #else /* !Q_WS_MAC */ … … 545 550 Qt::QueuedConnection); 546 551 } 547 /* Revalidate 'fullscreen' windows: */552 /* Revalidate native fullscreen: */ 548 553 revalidateNativeFullScreen(); 549 554 } … … 675 680 if (uScreenID != 0 && !screensHaveSeparateSpaces()) 676 681 { 677 LogRel(("UIMachineLogicFullscreen::revalidateNativeFullScreen: " 678 "Ask machine-window #%d to show/normalize.\n", (int)uScreenID)); 679 680 /* Make sure window have proper geometry: */ 681 pMachineWindow->showInNecessaryMode(); 682 /* If there is no fullscreen window or it's invalidated: */ 683 if (m_fullscreenMachineWindows.isEmpty() || !m_invalidFullscreenMachineWindows.isEmpty()) 684 { 685 LogRel(("UIMachineLogicFullscreen::revalidateNativeFullScreen: " 686 "Ask transient machine-window #%d to hide.\n", (int)uScreenID)); 687 688 pMachineWindow->hide(); 689 } 690 /* If there is valid fullscreen window: */ 691 else 692 { 693 LogRel(("UIMachineLogicFullscreen::revalidateNativeFullScreen: " 694 "Ask transient machine-window #%d to show/normalize.\n", (int)uScreenID)); 695 696 /* Make sure window have proper geometry and shown: */ 697 pMachineWindow->showInNecessaryMode(); 698 } 682 699 } 683 700 /* Validate window which can be fullscreen: */ … … 712 729 "Ask machine-window #%d to hide.\n", (int)uScreenID)); 713 730 714 /* Else make sure that window is hidden: */ 715 pMachineWindow->showInNecessaryMode(); 731 pMachineWindow->hide(); 716 732 } 717 733 } … … 728 744 * 1. shouldn't really be shown or 729 745 * 2. isn't mapped to some host-screen or 730 * 3. should be located on another host-screen than currently or 731 * 4. have another frame-buffer size than actually should. */ 746 * 3. should be located on another host-screen than currently. */ 732 747 if ( !uisession()->isScreenVisible(uScreenID) 733 748 || !hasHostScreenForGuestScreen(uScreenID) 734 || iWantedHostScreenIndex != iCurrentHostScreenIndex 735 || frameBufferSize != screenSize) 749 || iWantedHostScreenIndex != iCurrentHostScreenIndex) 736 750 { 737 751 LogRel(("UIMachineLogicFullscreen::revalidateNativeFullScreen: " … … 744 758 emit sigNotifyAboutNativeFullscreenShouldBeExited(pMachineWindow); 745 759 } 760 761 /* If that window 762 * 1. have another frame-buffer size than actually should. */ 763 else if (frameBufferSize != screenSize) 764 { 765 LogRel(("UIMachineLogicFullscreen::revalidateNativeFullScreen: " 766 "Ask machine-window #%d to adjust guest geometry.\n", (int)uScreenID)); 767 768 /* Adjust guest screen size if necessary: */ 769 pMachineWindow->machineView()->maybeAdjustGuestScreenSize(); 770 } 746 771 } 747 772 }
Note:
See TracChangeset
for help on using the changeset viewer.