+ XCBCWBackPixel | XCBCWEventMask | XCBCWCursor, rootAttributes );
+
+ /* XClearWindow: clear area with all dimensions 0 */
+ XCBClearArea( xc, False, theWindow, 0, 0, 0, 0 );
+
+ XCBDRAWABLE d = { theWindow };
+ XCBGetGeometryRep *geometry = XCBGetGeometryReply( xc,
+ XCBGetGeometry( xc, d ), NULL);
+ if (geometry) {
+ /* only width & height are used by the program */
+ WindowWidth = geometry->width;
+ WindowHeight = geometry->height;
+ free(geometry);
+ }
+
+ /* TODO: grab key Alt-Q to quit gracefully? */