- x = data->client->area.x + o->x;
- y = data->client->area.y + o->y;
- w = data->client->area.width;
- h = data->client->area.height;
- client_try_configure(data->client, &x, &y, &w, &h, &lw, &lh, TRUE);
- client_find_onscreen(data->client, &x, &y, w, h, FALSE);
+ x = o->x;
+ y = o->y;
+ if (o->x_denom || o->y_denom) {
+ const Rect *carea;
+
+ carea = screen_area(c->desktop, client_monitor(c), NULL);
+ if (o->x_denom)
+ x = (x * carea->width) / o->x_denom;
+ if (o->y_denom)
+ y = (y * carea->height) / o->y_denom;
+ }
+ x = c->area.x + x;
+ y = c->area.y + y;
+ w = c->area.width;
+ h = c->area.height;
+ client_try_configure(c, &x, &y, &w, &h, &lw, &lh, TRUE);
+ client_find_onscreen(c, &x, &y, w, h, FALSE);