]> Dogcows Code - chaz/openbox/commitdiff
make all dialog typed windows transient for their group if they dont specify a WM_TRA...
authorDana Jansens <danakj@orodu.net>
Mon, 22 Dec 2003 17:24:51 +0000 (17:24 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Dec 2003 17:24:51 +0000 (17:24 +0000)
openbox/client.c

index fca7401c5ae0253caf270f8135e23ac449aa1da4..293546b758753f21694423f87faf9833ddc75149 100644 (file)
@@ -720,6 +720,11 @@ static void client_get_all(ObClient *self)
     client_get_mwm_hints(self);
     client_get_type(self);/* this can change the mwmhints for special cases */
 
+    /* The transient hint is used to pick a type, but the type can also affect
+       transiency (dialogs are always made transients). This is Havoc's idea,
+       but it is needed to make some apps work right (eg tsclient). */
+    client_update_transient_for(self);
+
     client_get_state(self);
 
     {
@@ -928,6 +933,9 @@ void client_update_transient_for(ObClient *self)
                 }
             }
         }
+    } else if (self->type == OB_CLIENT_TYPE_DIALOG && self->group) {
+        self->transient = TRUE;
+        target = OB_TRAN_GROUP;
     } else
         self->transient = FALSE;
 
This page took 0.02594 seconds and 4 git commands to generate.