]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
no center in the first smart-place
[chaz/openbox] / openbox / place.c
index 27df69f5d337802fa581aa86d59250f658b0ada6..32d9fa32f33cb73d490be93e9894aada611c97ae 100644 (file)
@@ -162,8 +162,13 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y,
             if (r->width >= client->frame->area.width &&
                 r->height >= client->frame->area.height) {
                 ret = TRUE;
-                *x = r->x + (r->width - client->frame->area.width) / 2;
-                *y = r->y + (r->height - client->frame->area.height) / 2;
+                if (only_focused) {
+                    *x = r->x + (r->width - client->frame->area.width) / 2;
+                    *y = r->y + (r->height - client->frame->area.height) / 2;
+                } else {
+                    *x = r->x;
+                    *y = r->y;
+                }
             }
         }
 
This page took 0.023201 seconds and 4 git commands to generate.