]> Dogcows Code - chaz/openbox/commitdiff
formatting, add an assert
authorDana Jansens <danakj@orodu.net>
Sat, 27 Sep 2003 17:50:28 +0000 (17:50 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 27 Sep 2003 17:50:28 +0000 (17:50 +0000)
openbox/client.c

index e6265e93664226f5049f82660eb0d6c1ac317826..c60c77fb13cf0ddfa2636253530d39fc21e355c0 100644 (file)
@@ -829,7 +829,7 @@ void client_update_transient_for(ObClient *self)
     ObClient *target = NULL;
 
     if (XGetTransientForHint(ob_display, self->window, &t)) {
-       self->transient = TRUE;
+        self->transient = TRUE;
         if (t != self->window) { /* cant be transient to itself! */
             target = g_hash_table_lookup(window_map, &t);
             /* if this happens then we need to check for it*/
@@ -845,14 +845,15 @@ void client_update_transient_for(ObClient *self)
                    group */
                 if (t == self->group->leader ||
                     t == None ||
-                    t == RootWindow(ob_display, ob_screen)) {
+                    t == RootWindow(ob_display, ob_screen))
+                {
                     /* window is a transient for its group! */
                     target = OB_TRAN_GROUP;
                 }
             }
         }
     } else
-       self->transient = FALSE;
+        self->transient = FALSE;
 
     /* if anything has changed... */
     if (target != self->transient_for) {
@@ -2814,6 +2815,8 @@ ObClient *client_search_top_transient(ObClient *self)
         } else {
             GSList *it;
 
+            g_assert(self->group);
+
             for (it = self->group->members; it; it = it->next) {
                 ObClient *c = it->data;
 
This page took 0.028304 seconds and 4 git commands to generate.