otk::pixel32 *dest = s->pixelData(), *src;
int w = _title_sur->size().width();
- src = _title_sur->pixelData() + w * (geom.bevel + 1) + geom.title_x;
+ src = _title_sur->pixelData() + w * geom.bevel + geom.title_x;
// get the background under the label
int xd = s->size().width();
_client->ignore_unmaps += 2;
// select the event mask on the client's parent (to receive config/map req's)
- XSelectInput(**otk::display, _plate, SubstructureRedirectMask);
+ // the ButtonPress is to catch clicks on the client border
+ XSelectInput(**otk::display, _plate, (SubstructureRedirectMask |
+ ButtonPressMask));
// map the client so it maps when the frame does
XMapWindow(**otk::display, _client->window());