From: Dana Jansens Date: Tue, 5 Jun 2007 17:01:55 +0000 (+0000) Subject: don't force clients on screen when restarting X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=94c95663a86b1b40463fcd1e25a9ac4bc10954c1;p=chaz%2Fopenbox don't force clients on screen when restarting --- diff --git a/openbox/client.c b/openbox/client.c index ee8001c9..4cfece1d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -411,10 +411,11 @@ void client_manage(Window window) splash screens get "transient" set to TRUE by the place_client call */ - transient || - (!(self->positioned & USPosition) && - client_normal(self) && - !self->session)); + ob_state() == OB_STATE_RUNNING && + (transient || + (!(self->positioned & USPosition) && + client_normal(self) && + !self->session))); } /* if the window isn't user-sized, then make it fit inside @@ -426,10 +427,11 @@ void client_manage(Window window) splash screens get "transient" set to TRUE by the place_client call */ - if (transient || - (!(self->sized & USSize) && - client_normal(self) && - !self->session)) + if (ob_state() == OB_STATE_RUNNING && + (transient || + (!(self->sized & USSize) && + client_normal(self) && + !self->session))) { /* make a copy to modify */ Rect a = *screen_area_monitor(self->desktop, client_monitor(self));