X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.cc;h=94384b3d34817d621c1379c4e48471b472463efd;hb=1dac42d9ed074bcd44f9d1016b0971ae473cc2eb;hp=6fedce49443fed8821aa2a480804cdb399e9127b;hpb=89a5c973ac97bdeb47904ad27c291dc577a5c0a3;p=chaz%2Fopenbox diff --git a/src/frame.cc b/src/frame.cc index 6fedce49..94384b3d 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -446,7 +446,7 @@ void Frame::renderLabel() 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(); @@ -816,7 +816,9 @@ void Frame::grabClient() _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());