use the client's size instead of the frames size so the real size is used, not the size of the frame (avoids shaded window problem)
This commit is contained in:
parent
a048c4302a
commit
251983186d
1 changed files with 9 additions and 2 deletions
|
@ -208,8 +208,15 @@ static void event(ObEvent *e, void *foo)
|
||||||
if (e->data.x.client != NULL) {
|
if (e->data.x.client != NULL) {
|
||||||
cx = e->data.x.client->frame->area.x;
|
cx = e->data.x.client->frame->area.x;
|
||||||
cy = e->data.x.client->frame->area.y;
|
cy = e->data.x.client->frame->area.y;
|
||||||
cw = e->data.x.client->frame->area.width;
|
/* use the client size because the frame can be differently
|
||||||
ch = e->data.x.client->frame->area.height;
|
sized (shaded windows) and we want this based on the clients
|
||||||
|
size */
|
||||||
|
cw = e->data.x.client->area.width +
|
||||||
|
e->data.x.client->frame->size.left +
|
||||||
|
e->data.x.client->frame->size.right;
|
||||||
|
ch = e->data.x.client->area.height +
|
||||||
|
e->data.x.client->frame->size.top +
|
||||||
|
e->data.x.client->frame->size.bottom;
|
||||||
px = e->data.x.e->xbutton.x_root;
|
px = e->data.x.e->xbutton.x_root;
|
||||||
py = e->data.x.e->xbutton.y_root;
|
py = e->data.x.e->xbutton.y_root;
|
||||||
corner = pick_corner(px, py, cx, cy, cw, ch);
|
corner = pick_corner(px, py, cx, cy, cw, ch);
|
||||||
|
|
Loading…
Reference in a new issue