X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fplace.c;h=8003270eb0e04f6afe4ee99cae683b96d2127224;hb=99daa7f5237b220b93bbec4854344d76cde3ef84;hp=74aa760517ebd83388f06c6ecf984ff6b399a3ad;hpb=d2f7ad9a2480c2810dee5def13cbdee36bd71e5e;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 74aa7605..8003270e 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -282,7 +282,7 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y, if (WINDOW_IS_CLIENT(it->data)) { c = it->data; - if (c->fullscreen) + if (c->fullscreen || (c->max_vert && c->max_horz)) continue; } else continue; @@ -306,7 +306,7 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y, if (WINDOW_IS_CLIENT(it->data)) { c = it->data; - if (c->fullscreen) + if (c->fullscreen || (c->max_vert && c->max_horz)) continue; } else continue; @@ -489,6 +489,7 @@ gboolean place_client(ObClient *client, gint *x, gint *y, place_random(client, x, y)))) g_assert_not_reached(); /* the last one better succeed */ /* get where the client should be */ - frame_frame_gravity(client->frame, x, y); + frame_frame_gravity(client->frame, x, y, + client->area.width, client->area.height); return ret; }