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

Function DoConfigureNotify

micropolis-activity/src/tk/tkwindow.c:1483–1508  ·  view source on GitHub ↗
(winPtr)

Source from the content-addressed store, hash-verified

1481 * DoConfigureNotify --
1482 *
1483 * Generate a ConfigureNotify event describing the current
1484 * configuration of a window.
1485 *
1486 * Results:
1487 * None.
1488 *
1489 * Side effects:
1490 * An event is generated and processed by Tk_HandleEvent.
1491 *
1492 *----------------------------------------------------------------------
1493 */
1494
1495static void
1496DoConfigureNotify(winPtr)
1497 register TkWindow *winPtr; /* Window whose configuration
1498 * was just changed. */
1499{
1500 XEvent event;
1501
1502 event.type = ConfigureNotify;
1503 event.xconfigure.serial = LastKnownRequestProcessed(winPtr->display);
1504 event.xconfigure.send_event = False;
1505 event.xconfigure.display = winPtr->display;
1506 event.xconfigure.event = winPtr->window;
1507 event.xconfigure.window = winPtr->window;
1508 event.xconfigure.x = winPtr->changes.x;
1509 event.xconfigure.y = winPtr->changes.y;
1510 event.xconfigure.width = winPtr->changes.width;
1511 event.xconfigure.height = winPtr->changes.height;

Callers 6

Tk_MakeWindowExistFunction · 0.85
Tk_ConfigureWindowFunction · 0.85
Tk_MoveWindowFunction · 0.85
Tk_ResizeWindowFunction · 0.85
Tk_MoveResizeWindowFunction · 0.85
Tk_SetWindowBorderWidthFunction · 0.85

Calls 1

Tk_HandleEventFunction · 0.70

Tested by

no test coverage detected