VirtualBox

Changeset 85925 in vbox


Ignore:
Timestamp:
Aug 28, 2020 10:33:48 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140114
Message:

DnD/X11: More (optional) release logging for onX11ClientMessage(); minor cleanup [follow-up for r140112].

File:
1 edited

Legend:

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

    r85924 r85925  
    934934             * window, in response of some events we send to them.
    935935             */
    936             if (   e.xclient.message_type == xAtom(XA_XdndStatus)
    937                 && m_wndCur               == static_cast<Window>(e.xclient.data.l[XdndStatusWindow]))
     936            if (e.xclient.message_type == xAtom(XA_XdndStatus))
    938937            {
    939938                Window wndTarget = static_cast<Window>(e.xclient.data.l[XdndStatusWindow]);
     
    16681667        rc = wndXDnDSetActionList(m_wndProxy.hWnd, lstActions);
    16691668        AssertRCBreak(rc);
     1669
     1670        Atom atmEnabled = 1;
     1671        XChangeProperty(m_pDisplay, m_wndProxy.hWnd, xAtom(XA_XdndActionAsk), XA_ATOM, 32, PropModeReplace,
     1672                        reinterpret_cast<unsigned char*>(&atmEnabled), 1);
     1673
     1674        XChangeProperty(m_pDisplay, m_wndProxy.hWnd, xAtom(XA_XdndActionDescription), XA_STRING, 8, PropModeReplace,
     1675                        (const unsigned char *)"VBox DnD", sizeof("VBox DnD"));
    16701676
    16711677        /* Set the DnD selection owner to our window. */
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