X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=044743bc046d91bb2019fc396e7e4a92ec622087;hb=51cc41e4db6295fbf9a3d2be6e8935d51ad61458;hp=e92ba632458ad701beb00409ed043acb73f57533;hpb=d10c5383732eacad76a984bb57e4e00be90944cc;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index e92ba632..044743bc 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -372,13 +372,13 @@ void place_client(ObClient *client, gint *x, gint *y) { if (client->positioned) return; - if (place_transient(client, x, y) || - place_dialog(client, x, y) || - place_smart(client, x, y, SMART_FULL) || - place_smart(client, x, y, SMART_GROUP) || - place_smart(client, x, y, SMART_FOCUSED) || - (config_focus_follow ? + if (place_transient(client, x, y) || + place_dialog(client, x, y) || + ((config_focus_follow && config_focus_new) ? place_under_mouse(client, x, y) : + place_smart(client, x, y, SMART_FULL) || + place_smart(client, x, y, SMART_GROUP) || + place_smart(client, x, y, SMART_FOCUSED) || place_random(client, x, y))) { /* get where the client should be */