(tkwin, x, y, width, height)
| 1253 | if (!(winPtr->flags & TK_TOP_LEVEL)) { |
| 1254 | winPtr->changes.width = width; |
| 1255 | winPtr->changes.height = height; |
| 1256 | DoConfigureNotify(winPtr); |
| 1257 | } |
| 1258 | } else { |
| 1259 | winPtr->changes.width = width; |
| 1260 | winPtr->changes.height = height; |
| 1261 | winPtr->dirtyChanges |= CWWidth|CWHeight; |
| 1262 | winPtr->flags |= TK_NEED_CONFIG_NOTIFY; |
| 1263 | } |
| 1264 | } |
| 1265 | |
| 1266 | void |
| 1267 | Tk_MoveResizeWindow(tkwin, x, y, width, height) |
| 1268 | Tk_Window tkwin; /* Window to move and resize. */ |
| 1269 | int x, y; /* New location for window (within |
| 1270 | * parent). */ |
| 1271 | unsigned int width, height; /* New dimensions for window. */ |
| 1272 | { |
| 1273 | register TkWindow *winPtr = (TkWindow *) tkwin; |
| 1274 | |
| 1275 | if (winPtr->window != None) { |
| 1276 | XMoveResizeWindow(winPtr->display, winPtr->window, |
| 1277 | x, y, width, height); |
| 1278 | if (!(winPtr->flags & TK_TOP_LEVEL)) { |
| 1279 | winPtr->changes.x = x; |
| 1280 | winPtr->changes.y = y; |
| 1281 | winPtr->changes.width = width; |
| 1282 | winPtr->changes.height = height; |
| 1283 | DoConfigureNotify(winPtr); |
| 1284 | } |
| 1285 | } else { |
no test coverage detected