VirtualBox

Changeset 89766 in vbox


Ignore:
Timestamp:
Jun 17, 2021 3:36:13 PM (3 years ago)
Author:
vboxsync
Message:

Additions: X11: VBoxClient: seamless: prevent crash on shutdown, bugref:10032.

XSendEvent() crashes when called with dpy=NULL. This is exactly a case when daemon
goes shutdown when X11 already terminated (e.g., when user did logout).

File:
1 edited

Legend:

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

    r86394 r89766  
    523523    LogRelFlowFuncEnter();
    524524    if (pDisplay == NULL)
     525    {
    525526        VBClLogFatalError("Failed to open X11 display\n");
     527        return false;
     528    }
     529
    526530    /* Message contents set to zero. */
    527531    XClientMessageEvent clientMessage = { ClientMessage, 0, 0, 0, 0, 0, 8 };
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