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

Function Tk_MoveWindow

micropolis-activity/src/tk/tkwindow.c:1210–1231  ·  view source on GitHub ↗
(tkwin, x, y)

Source from the content-addressed store, hash-verified

1208
1209 if (winPtr->window != None) {
1210 XConfigureWindow(winPtr->display, winPtr->window,
1211 valueMask, valuePtr);
1212 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1213 DoConfigureNotify(winPtr);
1214 }
1215 } else {
1216 winPtr->dirtyChanges |= valueMask;
1217 winPtr->flags |= TK_NEED_CONFIG_NOTIFY;
1218 }
1219}
1220
1221void
1222Tk_MoveWindow(tkwin, x, y)
1223 Tk_Window tkwin; /* Window to move. */
1224 int x, y; /* New location for window (within
1225 * parent). */
1226{
1227 register TkWindow *winPtr = (TkWindow *) tkwin;
1228
1229 if (winPtr->window != None) {
1230 XMoveWindow(winPtr->display, winPtr->window, x, y);
1231 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1232 winPtr->changes.x = x;
1233 winPtr->changes.y = y;
1234 DoConfigureNotify(winPtr);

Callers 2

PieMenuWidgetCmdFunction · 0.85
MenuWidgetCmdFunction · 0.85

Calls 1

DoConfigureNotifyFunction · 0.85

Tested by

no test coverage detected