(tkwin, width, height)
| 1231 | if (!(winPtr->flags & TK_TOP_LEVEL)) { |
| 1232 | winPtr->changes.x = x; |
| 1233 | winPtr->changes.y = y; |
| 1234 | DoConfigureNotify(winPtr); |
| 1235 | } |
| 1236 | } else { |
| 1237 | winPtr->changes.x = x; |
| 1238 | winPtr->changes.y = y; |
| 1239 | winPtr->dirtyChanges |= CWX|CWY; |
| 1240 | winPtr->flags |= TK_NEED_CONFIG_NOTIFY; |
| 1241 | } |
| 1242 | } |
| 1243 | |
| 1244 | void |
| 1245 | Tk_ResizeWindow(tkwin, width, height) |
| 1246 | Tk_Window tkwin; /* Window to resize. */ |
| 1247 | unsigned int width, height; /* New dimensions for window. */ |
| 1248 | { |
| 1249 | register TkWindow *winPtr = (TkWindow *) tkwin; |
| 1250 | |
| 1251 | if (winPtr->window != None) { |
| 1252 | XResizeWindow(winPtr->display, winPtr->window, width, height); |
| 1253 | if (!(winPtr->flags & TK_TOP_LEVEL)) { |
| 1254 | winPtr->changes.width = width; |
| 1255 | winPtr->changes.height = height; |
| 1256 | DoConfigureNotify(winPtr); |
no test coverage detected