VirtualBox

Ignore:
Timestamp:
Oct 16, 2024 10:44:43 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165163
Message:

FE/Qt: bugref:10407. Don't default to wayland QPA as our tool's Qt does not have that.

File:
1 edited

Legend:

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

    r106349 r106350  
    418418            break;
    419419        }
    420         /* Default to wayland QPA in Wayland even if XWayland is available: */
    421         if (enmDisplayServerType == VBGHDISPLAYSERVERTYPE_XWAYLAND)
     420        if (VBGHDisplayServerTypeIsXAvailable(enmDisplayServerType))
     421            /* Force using Qt platform plugin 'xcb', we have X11 specific code: */
     422            RTEnvSet("QT_QPA_PLATFORM", "xcb");
     423        else
     424            /* Assume pure Wayland (without a X server):*/
    422425            RTEnvSet("QT_QPA_PLATFORM", "wayland");
    423         else
    424             RTEnvSet("QT_QPA_PLATFORM", "xcb");
    425426#endif /* VBOX_WS_NIX */
    426427
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