From 292cb8b42e763634728d7e25d6987fcb5cbeb1aa Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 29 May 2007 12:21:46 +0000 Subject: [PATCH] center splash screens like parentless transients --- openbox/place.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) || -- 2.45.2