]> Dogcows Code - chaz/openbox/commitdiff
center splash screens like parentless transients
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 12:21:46 +0000 (12:21 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 12:21:46 +0000 (12:21 +0000)
openbox/place.c

index 99257bf13baf73182b8d546b7ba024f5c9b9219d..e4c8aed89598d6ed23a28d6af214bcec008ea77a 100644 (file)
@@ -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) ||
This page took 0.026447 seconds and 4 git commands to generate.