From: Dana Jansens Date: Tue, 29 May 2007 12:21:46 +0000 (+0000) Subject: center splash screens like parentless transients X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=292cb8b42e763634728d7e25d6987fcb5cbeb1aa;p=chaz%2Fopenbox center splash screens like parentless transients --- diff --git a/openbox/place.c b/openbox/place.c index 99257bf1..e4c8aed8 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -437,7 +437,7 @@ static gboolean place_per_app_setting(ObClient *client, gint *x, gint *y, return TRUE; } -static gboolean place_transient(ObClient *client, gint *x, gint *y) +static gboolean place_transient_splash(ObClient *client, gint *x, gint *y) { if (client->transient_for && client->type == OB_CLIENT_TYPE_DIALOG) { if (client->transient_for != OB_TRAN_GROUP) { @@ -480,7 +480,7 @@ static gboolean place_transient(ObClient *client, gint *x, gint *y) } } - if (client->transient) { + if (client->transient || client->type == OB_CLIENT_TYPE_SPLASH) { Rect **areas; areas = pick_head(client); @@ -502,7 +502,7 @@ gboolean place_client(ObClient *client, gint *x, gint *y, gboolean ret = FALSE; if (client->positioned) return FALSE; - if (place_transient(client, x, y)) + if (place_transient_splash(client, x, y)) ret = TRUE; else if (!( place_per_app_setting(client, x, y, settings) ||