next up previous contents index
Next: 4. The Drop Protocol Up: 3. The Drag Protocol Previous: 2. Pointer Motion   Contents   Index

3. Changing the Operation

The user is free to change the drag operation (copy, move, link) at any time during the drag gesture - for example, if she/he presses or releases modifier keys. The initiator then sends an XmOPERATION_CHANGED message.

XmOPERATION_CHANGED

Table: The XmOPERATION_CHANGED message send by the initiator.
Message User Data Size Description
data.b[0] BYTE Reason: XmOPERATION_CHANGED (0x08)
data.b[1] BYTE Byte Order: either 'B' (MSB first) or 'l' (LSB first).
data.b[2..3] CARD16 DnD Flags: 1 + 3
data.b[4..7] CARD32 Timestamp: set to the timestamp of the corresponding X event triggering this message.


The receiver then echoes the XmOPERATION_CHANGED message.


Table: The XmOPERATION_CHANGED message echoed by the receiver.
Message User Data Size Description
data.b[0] BYTE Reason: XmOPERATION_CHANGED (0x88)
data.b[1] BYTE Byte Order: either 'B' (MSB first) or 'l' (LSB first).
data.b[2..3] CARD16 DnD Flags: 1 + 2 + 3
data.b[4..7] CARD32 Timestamp: set to the timestamp of the corresponding X event triggering this message.



next up previous contents index
Next: 4. The Drop Protocol Up: 3. The Drag Protocol Previous: 2. Pointer Motion   Contents   Index
Danny Backx
2000-12-13