summaryrefslogtreecommitdiff
path: root/openbox/moveresize.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/moveresize.c')
-rw-r--r--openbox/moveresize.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 2344e86a..4b46e175 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -195,6 +195,10 @@ static void do_move(gboolean resist)
client_configure(moveresize_client, OB_CORNER_TOPLEFT, cur_x, cur_y,
moveresize_client->area.width,
moveresize_client->area.height, TRUE, FALSE);
+ if (config_resize_popup_show == 2)
+ popup_coords(moveresize_client, "%d x %d",
+ moveresize_client->frame->area.x,
+ moveresize_client->frame->area.y);
}
static void do_resize(gboolean resist)
@@ -220,8 +224,11 @@ static void do_resize(gboolean resist)
/* 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)
+ if (config_resize_popup_show == 2 ||
+ (config_resize_popup_show == 1 &&
+ (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);