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
|
old
|
new
|
static void x11Connect(struct X11CONTEXT
|
| 100 | 100 | { |
| 101 | 101 | XCloseDisplay(pContext->pDisplay); |
| 102 | 102 | pContext->pDisplay = NULL; |
| | 103 | return; |
| 103 | 104 | } |
| 104 | 105 | if (!XRRQueryExtension(pContext->pDisplay, &pContext->hRandREventBase, &pContext->hRandRErrorBase)) |
| 105 | 106 | { |
| 106 | 107 | XCloseDisplay(pContext->pDisplay); |
| 107 | 108 | pContext->pDisplay = NULL; |
| | 109 | return; |
| 108 | 110 | } |
| 109 | 111 | if (!XRRQueryVersion(pContext->pDisplay, &pContext->hRandRMajor, &pContext->hRandRMinor)) |
| 110 | 112 | { |
| 111 | 113 | XCloseDisplay(pContext->pDisplay); |
| 112 | 114 | pContext->pDisplay = NULL; |
| | 115 | return; |
| 113 | 116 | } |
| 114 | 117 | pContext->rootWindow = DefaultRootWindow(pContext->pDisplay); |
| 115 | 118 | } |