center splash screens like parentless transients
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
openbox/place.c
→
openbox/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) ||