- Timestamp:
- Apr 21, 2023 1:43:24 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxUtils-nix.cpp
r99491 r99504 740 740 DisplayServerType NativeWindowSubsystem::detectDisplayServerType() 741 741 { 742 /* Try to connect to the wayland display, assuming it succeeds only when a wayland compositor is active: */ 742 743 void *pWaylandDisplay = NULL; 743 744 void *pWaylandClientHandle = dlopen("libwayland-client.so", RTLD_LAZY); … … 750 751 } 751 752 753 /* Also try to connect to the default X11 display to determine if Xserver is running: */ 752 754 void *pXDisplay = NULL; 753 755 void *pX11Handle = dlopen("libX11.so", RTLD_LAZY); … … 760 762 } 761 763 764 /* If both wayland and X11 display can be connected then we should have XWayland: */ 762 765 if (pWaylandDisplay && pXDisplay) 763 766 return DisplayServerType_XWayland; … … 767 770 return DisplayServerType_XOrg; 768 771 772 /* Default to Xserver:*/ 769 773 return DisplayServerType_XOrg; 770 774 }
Note:
See TracChangeset
for help on using the changeset viewer.

