- if (place_transient(client, x, y))
- return;
- if (place_dialog(client, x, y))
- return;
- if (place_smart(client, x, y))
- return;
- if (place_under_mouse(client, x, y))
- return;
- g_assert_not_reached(); /* the last one better succeed */
+ 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 ?
+ place_under_mouse(client, x, y) :
+ place_random(client, x, y)))
+ {
+ /* get where the client should be */
+ frame_frame_gravity(client->frame, x, y);
+ } else
+ g_assert_not_reached(); /* the last one better succeed */