| 38 | |
| 39 | |
| 40 | void resizeWindow(Display *dpy, Window win, int width, int height, int myID) |
| 41 | { |
| 42 | XWindowAttributes xwa; |
| 43 | XGetWindowAttributes(dpy, win, &xwa); |
| 44 | if(width != xwa.width || height != xwa.height) |
| 45 | { |
| 46 | XLockDisplay(dpy); |
| 47 | XWindowChanges xwc; |
| 48 | xwc.x = (width + BORDER * 2) * myID; xwc.y = 0; |
| 49 | xwc.width = width; xwc.height = height; |
| 50 | XConfigureWindow(dpy, win, CWWidth | CWHeight | CWX | CWY, &xwc); |
| 51 | XFlush(dpy); |
| 52 | XSync(dpy, False); |
| 53 | XUnlockDisplay(dpy); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | |
| 58 | class Blitter : public Runnable |
no test coverage detected