summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2008-03-31 19:20:55 +0200
committerMikael Magnusson <mikachu@comhem.se>2008-03-31 19:23:38 +0200
commit54a70700bcd37e5450f09c7bd12d8717e4e0ce42 (patch)
tree5b787f1b048ecc3748734e31e515e150b01d25f9 /openbox
parent3d254cd35fca2a11b50a88f0e77d638649cbd108 (diff)
Center the moveresize popup even when shaded.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/moveresize.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index c023340e..333144bc 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -108,10 +108,8 @@ static void popup_coords(ObClient *c, const gchar *format, gint a, gint b)
c->frame->area.y - ob_rr_theme->fbwidth);
else if (config_resize_popup_pos == OB_RESIZE_POS_CENTER)
popup_position(popup, CenterGravity,
- c->frame->area.x + c->frame->size.left +
- c->area.width / 2,
- c->frame->area.y + c->frame->size.top +
- c->area.height / 2);
+ c->frame->area.x + c->frame->area.width / 2,
+ c->frame->area.y + c->frame->area.height / 2);
else /* Fixed */ {
Rect *area = screen_physical_area_active();
gint gravity, x, y;