forked from pool/virtualbox
9eaa6430bd
- A fix for boo #1166782 ("VirtualBox Guest 6.1.4 for OpenSUSE 15.1 constant segfault in libX11.so.6.3 every 5 seconds") is fixed. File "VirtualBox-6.1.4-VBoxClient-vmsvga-x11-crash.patch", published in https://www.virtualbox.org/ticket/19357, fixes the problem. OBS-URL: https://build.opensuse.org/request/show/785716 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=538
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
diff -up VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp~ VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
|
|
--- VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp~ 2020-02-18 18:13:08.000000000 +0100
|
|
+++ VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp 2020-03-03 16:27:49.947341705 +0100
|
|
@@ -100,16 +100,19 @@ static void x11Connect(struct X11CONTEXT
|
|
{
|
|
XCloseDisplay(pContext->pDisplay);
|
|
pContext->pDisplay = NULL;
|
|
+ return;
|
|
}
|
|
if (!XRRQueryExtension(pContext->pDisplay, &pContext->hRandREventBase, &pContext->hRandRErrorBase))
|
|
{
|
|
XCloseDisplay(pContext->pDisplay);
|
|
pContext->pDisplay = NULL;
|
|
+ return;
|
|
}
|
|
if (!XRRQueryVersion(pContext->pDisplay, &pContext->hRandRMajor, &pContext->hRandRMinor))
|
|
{
|
|
XCloseDisplay(pContext->pDisplay);
|
|
pContext->pDisplay = NULL;
|
|
+ return;
|
|
}
|
|
pContext->rootWindow = DefaultRootWindow(pContext->pDisplay);
|
|
}
|