(tkwin)
| 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 | |
| 1151 | void |
| 1152 | Tk_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); |
no test coverage detected