all repos — openbox @ 292cb8b42e763634728d7e25d6987fcb5cbeb1aa

openbox fork - make it a bit more like ryudo

center splash screens like parentless transients
Dana Jansens danakj@orodu.net
commit

292cb8b42e763634728d7e25d6987fcb5cbeb1aa

parent

a71a98b667c298fef7895f4d9a07eccb06cc6090

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M openbox/place.copenbox/place.c

@@ -437,7 +437,7 @@

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 @@ }

} } - if (client->transient) { + if (client->transient || client->type == OB_CLIENT_TYPE_SPLASH) { Rect **areas; areas = pick_head(client);

@@ -502,7 +502,7 @@ {

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) ||