VirtualBox

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


Ignore:
Timestamp:
Jan 29, 2025 10:06:23 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167237
Message:

FE/Qt: macOS: I don't think SetFrontProcess is required with Qt6.x, I think it's even harmful as application often ends z-ordered under launcher (i.e. terminal); But this needs a bit of testing before backporting.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r107795 r107974  
    23472347
    23482348#ifdef VBOX_WS_MAC
    2349     /* We have to make sure that we are getting the front most process: */
    2350     ::darwinSetFrontMostProcess();
    23512349    /* Install global event-filter, since vmstarter.app can send us FileOpen events,
    23522350     * see UIVirtualBoxManager::eventFilter for handler implementation. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r106061 r107974  
    472472    UICocoaApplication::instance()->registerToNotificationOfWorkspace("NSWorkspaceActiveSpaceDidChangeNotification", this,
    473473                                                                      UIMachineLogicFullscreen::nativeHandlerForActiveSpaceChange);
    474 
    475     /* We have to make sure that we are getting the front most process.
    476      * This is necessary for Qt versions > 4.3.3: */
    477     darwinSetFrontMostProcess();
    478474#endif /* VBOX_WS_MAC */
    479475
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r106061 r107974  
    276276        return;
    277277
    278 #ifdef VBOX_WS_MAC /// @todo Is that really need here?
    279     /* We have to make sure that we are getting the front most process.
    280      * This is necessary for Qt versions > 4.3.3: */
    281     ::darwinSetFrontMostProcess();
    282 #endif /* VBOX_WS_MAC */
    283 
    284278    /* Acquire monitor count: */
    285279    ulong cMonitorCount = 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp

    r106061 r107974  
    143143        return;
    144144
    145 #ifdef VBOX_WS_MAC /// @todo Is that really need here?
    146     /* We have to make sure that we are getting the front most process.
    147      * This is necessary for Qt versions > 4.3.3: */
    148     ::darwinSetFrontMostProcess();
    149 #endif /* VBOX_WS_MAC */
    150 
    151145    /* Acquire monitor count: */
    152146    ulong cMonitorCount = 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r106061 r107974  
    261261        return;
    262262
    263 #ifdef VBOX_WS_MAC
    264     /* We have to make sure that we are getting the front most process.
    265      * This is necessary for Qt versions > 4.3.3: */
    266     darwinSetFrontMostProcess();
    267 #endif /* VBOX_WS_MAC */
    268 
    269263    /* Update the multi-screen layout: */
    270264    m_pScreenLayout->update();
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