VirtualBox

Ignore:
Timestamp:
Feb 10, 2023 5:12:41 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155811
Message:

add/x11/VBoxClient: Style fix. Annotated structure members in the initializer while at it. bugref:10308

File:
1 edited

Legend:

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

    r98103 r98534  
    552552bool SeamlessX11::interruptEventWait(void)
    553553{
    554     bool rc = false;
     554    LogRelFlowFuncEnter();
     555
    555556    Display *pDisplay = XOpenDisplay(NULL);
    556 
    557     LogRelFlowFuncEnter();
    558557    if (pDisplay == NULL)
    559558    {
     
    564563    /* Message contents set to zero. */
    565564    XClientMessageEvent clientMessage =
    566         { ClientMessage, 0, 0, 0, 0, XInternAtom(pDisplay, "VBOX_CLIENT_SEAMLESS_HEARTBEAT", false), 8 };
    567 
     565    {
     566        /* .type         = */ ClientMessage,
     567        /* .serial       = */ 0,
     568        /* .send_event   = */ 0,
     569        /* .display      = */ 0,
     570        /* .window       = */ 0,
     571        /* .message_type = */ XInternAtom(pDisplay, "VBOX_CLIENT_SEAMLESS_HEARTBEAT", false),
     572        /* .format       = */ 8,
     573        /* .data ... */
     574    };
     575
     576    bool rc = false;
    568577    if (XSendEvent(pDisplay, DefaultRootWindow(mDisplay), false,
    569578                   PropertyChangeMask, (XEvent *)&clientMessage))
    570579        rc = true;
     580
    571581    XCloseDisplay(pDisplay);
    572582    LogRelFlowFunc(("returning %RTbool\n", rc));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette