VirtualBox

Ignore:
Timestamp:
Aug 28, 2020 10:57:11 AM (4 years ago)
Author:
vboxsync
Message:

DnD/X11: Added defines + documentation for (not yet implemented) drag'n drop promises support (VBOX_WITH_DRAG_AND_DROP_PROMISES). bugref:9820

File:
1 edited

Legend:

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

    r85926 r85927  
    4848#ifdef DEBUG
    4949//# define VBOX_DND_DEBUG_WND
     50#endif
     51
     52/* Enable this to handle drag'n drop "promises".
     53 * This is needed for supporting certain applications (i.e. PcManFM on LXDE),
     54 * which require the drag'n drop meta data a lot earlier than actually needed.
     55 * That behavior is similar to macOS' drag'n drop promises, hence the name.
     56 *
     57 * Those applications query the data right while dragging over them (see GtkWidget::drag-motion),
     58 * instead of when the source dropped the data (GtkWidget::drag-drop).
     59 *
     60 * This might be entirely implementation-specific, so not being a bug in GTK/GDK. Also see #9820.
     61 */
     62#ifdef VBOX_WITH_DRAG_AND_DROP_PROMISES
     63# undef VBOX_WITH_DRAG_AND_DROP_PROMISES
    5064#endif
    5165
     
    13381352                            pEvReq->requestor, pszWndName, xAtomToString(pEvReq->target).c_str());
    13391353
     1354#ifdef VBOX_WITH_DRAG_AND_DROP_PROMISES
     1355# error "Implement me!"
     1356#else
    13401357                /* Did we not drop our stuff to the guest yet? Bail out. */
    13411358                if (m_enmState != Dropped)
     
    13471364                else
    13481365                {
     1366#endif /* VBOX_WITH_DRAG_AND_DROP_PROMISES */
    13491367                    /* Get the data format the requestor wants from us. */
    13501368                    RTCString strFormat = xAtomToString(pEvReq->target);
     
    13731391                                 gX11->xErrorToString(xRc).c_str()));
    13741392                    RT_NOREF(xRc);
     1393#ifndef VBOX_WITH_DRAG_AND_DROP_PROMISES
    13751394                }
     1395#endif
    13761396            }
    13771397            /* Anything else. */
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