summaryrefslogtreecommitdiff
path: root/openbox/moveresize.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2004-03-21 00:48:48 +0000
committerMikael Magnusson <mikachu@comhem.se>2004-03-21 00:48:48 +0000
commit64c65f3b67364bb82420dbdd05d7e655b1d74d43 (patch)
treef1984745d372a47d34b21c784357bbe060fed657 /openbox/moveresize.c
parente8339970d8c319da0a0ac0129f075f86739f3bd3 (diff)
adds option to have the popup centered above the window instead of centered, and fix the last occurance of that reversed variable
Diffstat (limited to 'openbox/moveresize.c')
-rw-r--r--openbox/moveresize.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 68c75129..71241117 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -77,11 +77,17 @@ static void popup_coords(ObClient *c, gchar *format, gint a, gint b)
gchar *text;
text = g_strdup_printf(format, a, b);
- 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);
+ if (config_resize_popup_pos == 1) /* == "Top" */
+ popup_position(popup, SouthGravity,
+ c->frame->area.x
+ + c->frame->area.width/2,
+ c->frame->area.y);
+ else /* == "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);
popup_show(popup, text);
g_free(text);
}