VirtualBox

Changeset 99504 in vbox for trunk


Ignore:
Timestamp:
Apr 21, 2023 1:43:24 PM (18 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10407. Adding some comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxUtils-nix.cpp

    r99491 r99504  
    740740DisplayServerType NativeWindowSubsystem::detectDisplayServerType()
    741741{
     742    /* Try to connect to the wayland display, assuming it succeeds only when a wayland compositor is active: */
    742743    void *pWaylandDisplay = NULL;
    743744    void *pWaylandClientHandle = dlopen("libwayland-client.so", RTLD_LAZY);
     
    750751    }
    751752
     753    /* Also try to connect to the default X11 display to determine if Xserver is running: */
    752754    void *pXDisplay = NULL;
    753755    void *pX11Handle = dlopen("libX11.so", RTLD_LAZY);
     
    760762    }
    761763
     764    /* If both wayland and X11 display can be connected then we should have XWayland: */
    762765    if (pWaylandDisplay && pXDisplay)
    763766        return DisplayServerType_XWayland;
     
    767770        return DisplayServerType_XOrg;
    768771
     772    /* Default to Xserver:*/
    769773    return DisplayServerType_XOrg;
    770774}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette