XtDisplay(), XtParent(), XtScreen(), XtWindow() - obtain window information about a widget
Display *XtDisplay (Widget w)
Widget XtParent (Widget w)
Screen *XtScreen (Widget w)
Window XtWindow (Widget w)
XtDisplay(3) returns the display pointer for the specified widget.
XtParent(3) returns the parent widget for the specified widget.
XtScreen(3) returns the screen pointer for the specified widget.
XtWindow(3) returns the window of the specified widget.
XtClass()
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface