NOT_IN_CARBON */
| 1663 | |
| 1664 | /* NOT_IN_CARBON */ |
| 1665 | static void |
| 1666 | WindowGoAway(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 | |
| 1684 | void |
| 1685 | mac_get_nh_event(void) |
no test coverage detected