| 192 | |
| 193 | |
| 194 | void VirtualWin::checkResize(void) |
| 195 | { |
| 196 | if(eventdpy) |
| 197 | { |
| 198 | XSync(dpy, False); |
| 199 | while(XPending(eventdpy) > 0) |
| 200 | { |
| 201 | XEvent event; |
| 202 | _XNextEvent(eventdpy, &event); |
| 203 | if(event.type == ConfigureNotify && event.xconfigure.window == x11Draw |
| 204 | && event.xconfigure.width > 0 && event.xconfigure.height > 0) |
| 205 | resize(event.xconfigure.width, event.xconfigure.height); |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | |
| 211 | // Get the current 3D off-screen drawable, but resize the drawable (or change |