]> Dogcows Code - chaz/openbox/blobdiff - openbox/moveresize.c
adds option to have the popup centered above the window instead of centered, and...
[chaz/openbox] / openbox / moveresize.c
index 68c7512907186e3b1a29dd6d8ec8c5cb94232709..71241117ce824627da006a557473c3cbcdce271a 100644 (file)
@@ -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);
 }
This page took 0.021446 seconds and 4 git commands to generate.