VirtualBox

Ignore:
Timestamp:
Feb 21, 2014 6:46:09 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92383
Message:

FE/Qt: Mac OS X: 7016: Native fullscreen support: Make sure subsequent calls to NSWindow::toggleFullScreen are synchronized.

File:
1 edited

Legend:

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

    r50520 r50534  
    198198void darwinToggleFullscreenMode(NativeNSWindowRef pWindow)
    199199{
    200     /* Toggle native fullscreen mode for passed pWindow.
    201      * This method is available since 10.7 only. */
     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. */
    202202    if ([pWindow respondsToSelector: @selector(toggleFullScreen:)])
    203         [pWindow performSelector: @selector(toggleFullScreen:) withObject: (id)nil];
     203        [pWindow performSelectorOnMainThread: @selector(toggleFullScreen:) withObject: (id)nil waitUntilDone :NO];
    204204}
    205205
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