fallback to random when focus follows mouse is off
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
openbox/place.c
→
openbox/place.c
@@ -39,7 +39,6 @@
return NULL; } -#if 0 static gboolean place_random(ObClient *client, gint *x, gint *y) { int l, r, t, b;@@ -62,7 +61,6 @@ else *y = 0;
return TRUE; } -#endif static GSList* area_add(GSList *list, Rect *a) {@@ -272,7 +270,9 @@ return;
if (place_transient(client, x, y) || place_dialog(client, x, y) || place_smart(client, x, y) || - place_under_mouse(client, x, y)) + (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);