XMGETDESTINATION(3)
π XmGetDestination π
okay bestie, so XmGetDestination is a library call from the Motif fam β literally the little function that tells you which widget is the current destination for quick paste and certain clipboard operations. she's a lookup girlie, not a doer. π
β¨ NAME β¨
XmGetDestination β a function that returns the widget ID of the widget to be used as the current destination for quick paste and certain clipboard operations. that's her whole job, and she eats every time π
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
Widget XmGetDestination(
Display *display);
π¦ DESCRIPTION π¦
okay so here's the tea. XmGetDestination returns the widget that is the current destination on the specified display. π«Ά
the destination is generally the last editable widget on which a select, edit, insert, or paste operation was performed, and it is the destination for quick paste and certain clipboard functions. like, she's keeping receipts of where you last did the thing, and that's where the paste is gonna land. iconic behavior, honestly. β¨
β οΈ heads up: the destination is NULL until a keyboard or mouse operation has been done on an editable widget. so like, if nobody's touched anything yet, don't come crying to her β she's got nothing to give you. it's giving empty group chat. π
and if you need the full lore on keyboard focus? refer to the Motif Programmer's Guide for a description of keyboard focus. she's not explaining all that here, go read the book. π
here's the one and only parameter:
displayβ Specifies the display whose destination widget is to be queried. yes, you gotta tell her which display you're asking about, she doesn't read minds (yet). π
π RETURN π
Returns the widget ID for the current destination, or NULL if there is no current destination. that's it. that's the whole return. no drama, no surprises, just a widget ID or a very honest NULL. π
and that's the page bestie!! this whole thing lives in the Motif docs as XmGetDestination(library call) β like, that's the source/version-and-date footer vibe she came with, and honestly she wore it well. π go forth and query your destinations, you absolute main character. π§β¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms