MCPcopy Create free account
hub / github.com/NetHack/NetHack / X11_sig_cb

Function X11_sig_cb

win/X11/winX.c:1711–1729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1709}
1710
1711static void
1712X11_sig_cb(XtPointer not_used, XtSignalId *id)
1713{
1714 XEvent event;
1715 XClientMessageEvent *mesg;
1716
1717 nhUse(not_used);
1718 nhUse(id);
1719
1720 /* Set up a fake message to the event handler. */
1721 mesg = (XClientMessageEvent *) &event;
1722 mesg->type = ClientMessage;
1723 mesg->message_type = XA_STRING;
1724 mesg->format = 8;
1725
1726 XSendEvent(XtDisplay(window_list[WIN_MAP].w),
1727 XtWindow(window_list[WIN_MAP].w), False, NoEventMask,
1728 (XEvent *) mesg);
1729}
1730#endif
1731
1732/* X11_delay_output ------------------------------------------------------- */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected