VirtualBox

Changeset 51246 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 13, 2014 4:18:35 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93683
Message:

FE/Qt: Mac OS X: Runtime UI: Native Full Screen: Sync NSWindow::toggleFullScreen calls by Qt means (required to enter native full screen mode with modal sheet opened).

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm

    r51130 r51246  
    198198void darwinToggleFullscreenMode(NativeNSWindowRef pWindow)
    199199{
    200     /* Toggle native fullscreen mode for passed pWindow. This method is available since 10.7 only.
    201      * To automatically sync this method subsequent calls we performing it on the main (GUI) thread. */
     200    /* Toggle native fullscreen mode for passed pWindow. This method is available since 10.7 only. */
    202201    if ([pWindow respondsToSelector: @selector(toggleFullScreen:)])
    203         [pWindow performSelectorOnMainThread: @selector(toggleFullScreen:) withObject: (id)nil waitUntilDone :NO];
     202        [pWindow performSelector: @selector(toggleFullScreen:) withObject: (id)nil];
    204203}
    205204
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r51035 r51246  
    438438            /* Window => logic signals: */
    439439            connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenWillEnter()),
    440                     this, SLOT(sltHandleNativeFullscreenWillEnter()));
     440                    this, SLOT(sltHandleNativeFullscreenWillEnter()),
     441                    Qt::QueuedConnection);
    441442            connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidEnter()),
    442                     this, SLOT(sltHandleNativeFullscreenDidEnter()));
     443                    this, SLOT(sltHandleNativeFullscreenDidEnter()),
     444                    Qt::QueuedConnection);
    443445            connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenWillExit()),
    444                     this, SLOT(sltHandleNativeFullscreenWillExit()));
     446                    this, SLOT(sltHandleNativeFullscreenWillExit()),
     447                    Qt::QueuedConnection);
    445448            connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidExit()),
    446                     this, SLOT(sltHandleNativeFullscreenDidExit()));
     449                    this, SLOT(sltHandleNativeFullscreenDidExit()),
     450                    Qt::QueuedConnection);
    447451        }
    448452        /* Revalidate 'fullscreen' windows: */
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