]> Dogcows Code - chaz/openbox/commitdiff
only use the initial_state shit when NOT starting and when managing the window
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 01:25:51 +0000 (01:25 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 01:25:51 +0000 (01:25 +0000)
openbox/client.c

index 783678b83dfeae7c14e8dd0de2ed0e1aff12741c..59c2274e9104862dbdc19aaf9fc76b5d30fa0935 100644 (file)
@@ -893,6 +893,7 @@ static void client_change_allowed_actions(Client *self)
        else self->shaded = FALSE;
     }
     if (!(self->functions & Func_Iconify) && self->iconic) {
+        g_message("UNSETTING ICONIC");
        if (self->frame) client_iconify(self, FALSE, TRUE);
        else self->iconic = FALSE;
     }
@@ -934,9 +935,11 @@ void client_update_wmhints(Client *self)
        if (hints->flags & InputHint)
            self->can_focus = hints->input;
 
-       /* only do this when starting! */
-       if (ob_state == State_Starting && (hints->flags & StateHint))
-           self->iconic = hints->initial_state == IconicState;
+       /* only do this when first managing the window *AND* when we aren't
+           starting up! */
+       if (ob_state != State_Starting && self->frame == NULL)
+            if (hints->flags & StateHint)
+                self->iconic = hints->initial_state == IconicState;
 
        if (hints->flags & XUrgencyHint)
            ur = TRUE;
This page took 0.024792 seconds and 4 git commands to generate.