MCPcopy Create free account
hub / github.com/SimHacker/micropolis / Tk_UnmapWindow

Function Tk_UnmapWindow

micropolis-activity/src/tk/tkwindow.c:1140–1163  ·  view source on GitHub ↗
(tkwin)

Source from the content-addressed store, hash-verified

1138 * procedure also updates the local window structure and
1139 * synthesizes an X event (if the window's structure is being
1140 * managed internally).
1141 *
1142 * Results:
1143 * See the manual entries.
1144 *
1145 * Side effects:
1146 * See the manual entries.
1147 *
1148 *--------------------------------------------------------------
1149 */
1150
1151void
1152Tk_UnmapWindow(tkwin)
1153 Tk_Window tkwin; /* Token for window to unmap. */
1154{
1155 register TkWindow *winPtr = (TkWindow *) tkwin;
1156
1157 if (!(winPtr->flags & TK_MAPPED)) {
1158 return;
1159 }
1160 winPtr->flags &= ~TK_MAPPED;
1161 XUnmapWindow(winPtr->display, winPtr->window);
1162 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1163 XEvent event;
1164
1165 event.type = UnmapNotify;
1166 event.xunmap.serial = LastKnownRequestProcessed(winPtr->display);

Callers 7

PieMenuWidgetCmdFunction · 0.85
Tk_PlaceCmdFunction · 0.85
Tk_PackCmdFunction · 0.85
ArrangePackingFunction · 0.85
MenuWidgetCmdFunction · 0.85
ConfigureWinItemFunction · 0.85
DeleteWinItemFunction · 0.85

Calls 1

Tk_HandleEventFunction · 0.70

Tested by

no test coverage detected