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

Function WindowGoAway

outdated/sys/mac/macwin.c:1665–1682  ·  view source on GitHub ↗

NOT_IN_CARBON */

Source from the content-addressed store, hash-verified

1663
1664/* NOT_IN_CARBON */
1665static void
1666WindowGoAway(EventRecord *theEvent, WindowPtr theWindow)
1667{
1668 NhWindow *aWin = GetNhWin(theWindow);
1669
1670 if (!theEvent || TrackGoAway(theWindow, theEvent->where)) {
1671 if (aWin - theWindows == BASE_WINDOW && !iflags.window_inited) {
1672 AddToKeyQueue('\033', 1);
1673 } else {
1674 HideWindow(theWindow);
1675 if (aWin - theWindows != inSelect)
1676 mac_destroy_nhwindow(aWin - theWindows);
1677 else /* if this IS the inSelect window put a close char */
1678 AddToKeyQueue(CHAR_CR,
1679 1); /* in queue to exit and maintain inSelect */
1680 }
1681 }
1682}
1683
1684void
1685mac_get_nh_event(void)

Callers 1

HandleClickFunction · 0.85

Calls 3

GetNhWinFunction · 0.85
AddToKeyQueueFunction · 0.85
mac_destroy_nhwindowFunction · 0.85

Tested by

no test coverage detected