---
name: "XmDragCancel"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmDragCancel"
---

# XmDragCancel(3)

A Drag and Drop function that terminates a drag transaction

## NAME

**XmDragCancel** — A Drag and Drop function that terminates a drag transaction

## SYNOPSIS

```
#include <Xm/DragDrop.h>
void XmDragCancel(
Widget dragcontext);
```

## DESCRIPTION

**XmDragCancel** terminates a drag operation and cancels any pending actions of the specified DragContext. This routine can only be called by the initiator client.

- *dragcontext*

  Specifies the ID of the DragContext widget associated with the drag and drop transaction to be terminated

For a complete definition of DragContext and its associated resources, see [**XmDragContext**(3)](/XmDragContext/3.md).

## RELATED

[**XmDragContext**(3)](/XmDragContext/3.md) and [**XmDragStart**(3)](/XmDragStart/3.md).
