center splash screens like parentless transients
This commit is contained in:
parent
a71a98b667
commit
292cb8b42e
1 changed files with 3 additions and 3 deletions
|
@ -437,7 +437,7 @@ static gboolean place_per_app_setting(ObClient *client, gint *x, gint *y,
|
||||||
return TRUE;
|
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 && client->type == OB_CLIENT_TYPE_DIALOG) {
|
||||||
if (client->transient_for != OB_TRAN_GROUP) {
|
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;
|
Rect **areas;
|
||||||
|
|
||||||
areas = pick_head(client);
|
areas = pick_head(client);
|
||||||
|
@ -502,7 +502,7 @@ gboolean place_client(ObClient *client, gint *x, gint *y,
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
if (client->positioned)
|
if (client->positioned)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (place_transient(client, x, y))
|
if (place_transient_splash(client, x, y))
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
else if (!(
|
else if (!(
|
||||||
place_per_app_setting(client, x, y, settings) ||
|
place_per_app_setting(client, x, y, settings) ||
|
||||||
|
|
Loading…
Reference in a new issue