]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
let you lower a window without lowering its children, or its siblings
[chaz/openbox] / openbox / action.c
index 7c799693c333553463982250d092fcc9efcb0cb2..7bc8ab658e849ef4f25e87be71c2c58f48e10b63 100644 (file)
@@ -1462,8 +1462,8 @@ void action_move_to_center(union ActionData *data)
     Rect *area;
     area = screen_area(c->desktop, client_monitor(c), NULL);
     client_action_start(data);
-    client_move(c, area->width / 2 - c->area.width / 2,
-                area->height / 2 - c->area.height / 2);
+    client_move(c, area->x + area->width / 2 - c->area.width / 2,
+                area->y + area->height / 2 - c->area.height / 2);
     client_action_end(data, FALSE);
     g_free(area);
 }
This page took 0.026661 seconds and 4 git commands to generate.