- /* dispatch_resize needs the frame size */
- cur_x += client->frame->size.left + client->frame->size.right;
- cur_y += client->frame->size.top + client->frame->size.bottom;
-
- dispatch_resize(client, &cur_x, &cur_y, lockcorner);
-
- cur_x -= client->frame->size.left + client->frame->size.right;
- cur_y -= client->frame->size.top + client->frame->size.bottom;
-
- client_configure(client, lockcorner, client->area.x,
- client->area.y, cur_x, cur_y, TRUE, FALSE);
-
- popup_coords("W: %d H: %d", client->logical_size.width,
- client->logical_size.height);
+ /* resist_size_* needs the frame size */
+ cur_x += moveresize_client->frame->size.left +
+ moveresize_client->frame->size.right;
+ cur_y += moveresize_client->frame->size.top +
+ moveresize_client->frame->size.bottom;
+
+ if (resist)
+ resist_size_windows(moveresize_client, &cur_x, &cur_y, lockcorner);
+ resist_size_monitors(moveresize_client, &cur_x, &cur_y, lockcorner);
+
+ cur_x -= moveresize_client->frame->size.left +
+ moveresize_client->frame->size.right;
+ cur_y -= moveresize_client->frame->size.top +
+ moveresize_client->frame->size.bottom;
+
+ client_configure(moveresize_client, lockcorner,
+ moveresize_client->area.x, moveresize_client->area.y,
+ cur_x, cur_y, TRUE, FALSE);
+
+ /* this would be better with a fixed width font ... XXX can do it better
+ if there are 2 text boxes */
+ if (moveresize_client->size_inc.width > 1 ||
+ moveresize_client->size_inc.height > 1)
+ popup_coords(moveresize_client, "%d x %d",
+ moveresize_client->logical_size.width,
+ moveresize_client->logical_size.height);