return ret;
}
-static gboolean place_smart(ObClient *client, gint *x, gint *y)
+static gboolean place_smart(ObClient *client, gint *x, gint *y,
+ gboolean only_focused)
{
guint i;
gboolean ret = FALSE;
if (c != client && !c->shaded && client_normal(c)) {
spaces = area_remove(spaces, &c->frame->area);
- break;
+ if (only_focused)
+ break;
}
}
{
if (client->positioned)
return;
- if (place_transient(client, x, y) ||
- place_dialog(client, x, y) ||
- place_smart(client, x, y) ||
+ if (place_transient(client, x, y) ||
+ place_dialog(client, x, y) ||
+ place_smart(client, x, y, FALSE) ||
+ place_smart(client, x, y, TRUE) ||
(config_focus_follow ?
place_under_mouse(client, x, y) :
place_random(client, x, y)))