don't force clients on screen when restarting

This commit is contained in:
Dana Jansens 2007-06-05 17:01:55 +00:00
parent 04eea8e56d
commit 94c95663a8

View file

@ -411,10 +411,11 @@ void client_manage(Window window)
splash screens get "transient" set to TRUE by splash screens get "transient" set to TRUE by
the place_client call the place_client call
*/ */
transient || ob_state() == OB_STATE_RUNNING &&
(!(self->positioned & USPosition) && (transient ||
client_normal(self) && (!(self->positioned & USPosition) &&
!self->session)); client_normal(self) &&
!self->session)));
} }
/* if the window isn't user-sized, then make it fit inside /* 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 splash screens get "transient" set to TRUE by
the place_client call the place_client call
*/ */
if (transient || if (ob_state() == OB_STATE_RUNNING &&
(!(self->sized & USSize) && (transient ||
client_normal(self) && (!(self->sized & USSize) &&
!self->session)) client_normal(self) &&
!self->session)))
{ {
/* make a copy to modify */ /* make a copy to modify */
Rect a = *screen_area_monitor(self->desktop, client_monitor(self)); Rect a = *screen_area_monitor(self->desktop, client_monitor(self));