: otk::OtkWidget(Openbox::instance, style),
_client(client),
_screen(otk::OBDisplay::screenInfo(client->screen())),
: otk::OtkWidget(Openbox::instance, style),
_client(client),
_screen(otk::OBDisplay::screenInfo(client->screen())),
_titlebar(this),
_button_close(&_titlebar),
_button_iconify(&_titlebar),
_titlebar(this),
_button_close(&_titlebar),
_button_iconify(&_titlebar),
XSetWindowBorder(otk::OBDisplay::display, getWindow(),
_style->getBorderColor()->pixel());
XSetWindowBorder(otk::OBDisplay::display, _titlebar.getWindow(),
XSetWindowBorder(otk::OBDisplay::display, getWindow(),
_style->getBorderColor()->pixel());
XSetWindowBorder(otk::OBDisplay::display, _titlebar.getWindow(),
int width; // the width of the client window and the border around it
int bwidth; // width to make borders
int width; // the width of the client window and the border around it
int bwidth; // width to make borders
_size.left = _size.top = _size.bottom = _size.right =
_style->getFrameWidth();
width = _client->area().width() + _style->getFrameWidth() * 2;
} else {
_size.left = _size.top = _size.bottom = _size.right =
_style->getFrameWidth();
width = _client->area().width() + _style->getFrameWidth() * 2;
} else {
XSetWindowBorderWidth(otk::OBDisplay::display, getWindow(), bwidth);
XSetWindowBorderWidth(otk::OBDisplay::display, _titlebar.getWindow(),
bwidth);
XSetWindowBorderWidth(otk::OBDisplay::display, getWindow(), bwidth);
XSetWindowBorderWidth(otk::OBDisplay::display, _titlebar.getWindow(),
bwidth);
resize(_size.left + _size.right + _client->area().width(),
_size.top + _size.bottom + _client->area().height());
resize(_size.left + _size.right + _client->area().width(),
_size.top + _size.bottom + _client->area().height());
- XMoveWindow(otk::OBDisplay::display, _client->window(),
- _size.left, _size.top);
+ _plate.setGeometry(_size.left, _size.top, _client->area().width(),
+ _client->area().height());
//XSelectInput(otk::OBDisplay::display, _window, SubstructureRedirectMask);
// reparent the client to the frame
//XSelectInput(otk::OBDisplay::display, _window, SubstructureRedirectMask);
// reparent the client to the frame
- XReparentWindow(otk::OBDisplay::display, _client->window(), getWindow(), 0, 0);
+ XReparentWindow(otk::OBDisplay::display, _client->window(),
+ _plate.getWindow(), 0, 0);