VirtualBox

Changeset 75836 in vbox


Ignore:
Timestamp:
Nov 30, 2018 10:52:50 AM (6 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: do not start on Linux 4.6 and later.
bugref:8533: Additions/x11: fully support VMSVGA
On Linux 4.6 and later we can send resize information straight to the kernel
driver, so we do not need to go through X11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r70169 r75836  
    4646#include <iprt/string.h>
    4747
     48#include <sys/utsname.h>
     49
    4850/** Maximum number of supported screens.  DRM and X11 both limit this to 32. */
    4951/** @todo if this ever changes, dynamically allocate resizeable arrays in the
     
    5456
    5557#include <X11/Xlibint.h>
     58
     59static bool checkRecentLinuxKernel(void)
     60{
     61    struct utsname name;
     62
     63    if (uname(&name))
     64        VBClFatalError(("Failed to get kernel name.\n"));
     65    if (strcmp(name.sysname, "Linux"))
     66        return false;
     67    return (RTStrVersionCompare(name.release, "4.6") >= 0);
     68}
    5669
    5770struct X11CONTEXT
     
    231244    unsigned cHeads;
    232245
     246    if (checkRecentLinuxKernel())
     247        return VINF_SUCCESS;
    233248    x11Connect(&x11Context);
    234249    if (x11Context.pDisplay == NULL)
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