]> Dogcows Code - chaz/openbox/commitdiff
use the client's size instead of the frames size so the real size is used, not the...
authorDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:20:29 +0000 (20:20 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:20:29 +0000 (20:20 +0000)
plugins/mouse/mouse.c

index 0b2471ee9e0b8c1f8f3534604d995bb8a1cee285..1ef0ee8772a77813e632d2877733f5c401583643 100644 (file)
@@ -208,8 +208,15 @@ static void event(ObEvent *e, void *foo)
             if (e->data.x.client != NULL) {
                 cx = e->data.x.client->frame->area.x;
                 cy = e->data.x.client->frame->area.y;
-                cw = e->data.x.client->frame->area.width;
-                ch = e->data.x.client->frame->area.height;
+                /* use the client size because the frame can be differently
+                   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;
                 py = e->data.x.e->xbutton.y_root;
                 corner = pick_corner(px, py, cx, cy, cw, ch);
This page took 0.02253 seconds and 4 git commands to generate.