+#if defined(SHAPE) || defined(DOXYGEN_IGNORE)
+void OBClient::shapeHandler(const XShapeEvent &e)
+{
+ otk::OtkEventHandler::shapeHandler(e);
+
+ _shaped = e.shaped;
+}
+#endif
+
+
+void OBClient::resize(Corner anchor, int w, int h)
+{
+ w -= _base_size.x();
+ h -= _base_size.y();
+
+ // is the window resizable? if it is not, then don't check its sizes, the
+ // client can do what it wants and the user can't change it anyhow
+ if (_min_size.x() <= _max_size.x() && _min_size.y() <= _max_size.y()) {
+ // smaller than min size or bigger than max size?
+ if (w < _min_size.x()) w = _min_size.x();
+ else if (w > _max_size.x()) w = _max_size.x();
+ if (h < _min_size.y()) h = _min_size.y();
+ else if (h > _max_size.y()) h = _max_size.y();
+ }
+
+ // keep to the increments
+ w /= _size_inc.x();
+ h /= _size_inc.y();
+
+ // store the logical size
+ _logical_size.setPoint(w, h);
+
+ w *= _size_inc.x();
+ h *= _size_inc.y();
+
+ w += _base_size.x();
+ h += _base_size.y();
+
+ switch (anchor) {
+ case TopLeft:
+ break;
+ case TopRight:
+ _area.setX(_area.x() - _area.width() - w);
+ break;
+ case BottomLeft:
+ _area.setY(_area.y() - _area.height() - h);
+ break;
+ case BottomRight:
+ _area.setX(_area.x() - _area.width() - w);
+ _area.setY(_area.y() - _area.height() - h);
+ break;
+ }
+
+ _area.setSize(w, h);
+
+ // resize the frame to match
+ frame->adjust();
+}
+
+
+void OBClient::move(int x, int y)
+{
+ _area.setPos(x, y);
+ // move the frame to be in the requested position
+ frame->applyGravity();
+}
+
+
+void OBClient::configureRequestHandler(const XConfigureRequestEvent &e)