(clientData)
| 477 | * Results: |
| 478 | * None. |
| 479 | * |
| 480 | * Side effects: |
| 481 | * The frame given by the clientData argument is mapped. |
| 482 | * |
| 483 | *---------------------------------------------------------------------- |
| 484 | */ |
| 485 | |
| 486 | static void |
| 487 | MapFrame(clientData) |
| 488 | ClientData clientData; /* Pointer to frame structure. */ |
| 489 | { |
| 490 | Frame *framePtr = (Frame *) clientData; |
| 491 | |
| 492 | /* |
| 493 | * Wait for all other background events to be processed before |
| 494 | * mapping window. This ensures that the window's correct geometry |
| 495 | * will have been determined before it is first mapped, so that the |
| 496 | * window manager doesn't get a false idea of its desired geometry. |
| 497 | */ |
| 498 | |
| 499 | do { |
| 500 | if (Tk_DoOneEvent(TK_IDLE_EVENTS) == 0) { |
| 501 | break; |
| 502 | } |
| 503 | |
| 504 | /* |
| 505 | * After each event, make sure that the window still exists, |
| 506 | * and quit if the window has been destroyed. |
| 507 | */ |
| 508 | |
| 509 | if (framePtr->tkwin == NULL) { |
| 510 | return; |
nothing calls this directly
no test coverage detected