MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / resizeWindow

Function resizeWindow

common/frameut.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40void 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
58class Blitter : public Runnable

Callers 3

frameut.cppFile · 0.85
runMethod · 0.85
dotestMethod · 0.85

Calls 1

XConfigureWindowFunction · 0.85

Tested by

no test coverage detected