| 198 | // current in OpenGL. |
| 199 | |
| 200 | Window XCreateSimpleWindow(Display *dpy, Window parent, int x, int y, |
| 201 | unsigned int width, unsigned int height, unsigned int border_width, |
| 202 | unsigned long border, unsigned long background) |
| 203 | { |
| 204 | Window win = 0; |
| 205 | TRY(); |
| 206 | |
| 207 | if(IS_EXCLUDED(dpy)) |
| 208 | return _XCreateSimpleWindow(dpy, parent, x, y, width, height, border_width, |
| 209 | border, background); |
| 210 | |
| 211 | ///////////////////////////////////////////////////////////////////////////// |
| 212 | OPENTRACE(XCreateSimpleWindow); PRARGD(dpy); PRARGX(parent); PRARGI(x); |
| 213 | PRARGI(y); PRARGI(width); PRARGI(height); STARTTRACE(); |
| 214 | ///////////////////////////////////////////////////////////////////////////// |
| 215 | |
| 216 | win = _XCreateSimpleWindow(dpy, parent, x, y, width, height, border_width, |
| 217 | border, background); |
| 218 | if(win) WINHASH.add(dpy, win); |
| 219 | |
| 220 | ///////////////////////////////////////////////////////////////////////////// |
| 221 | STOPTRACE(); PRARGX(win); CLOSETRACE(); |
| 222 | ///////////////////////////////////////////////////////////////////////////// |
| 223 | |
| 224 | CATCH(); |
| 225 | return win; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | Window XCreateWindow(Display *dpy, Window parent, int x, int y, |
no test coverage detected