From: Dana Jansens Date: Sat, 11 Oct 2003 07:35:05 +0000 (+0000) Subject: give clients being restored from a session a little more flexibility in lpacement... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5592351585a96da1a45bf9919dd508f226fe1058;p=chaz%2Fopenbox give clients being restored from a session a little more flexibility in lpacement so they will go back where they were when saved --- diff --git a/openbox/client.c b/openbox/client.c index 8216c447..619531de 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -346,7 +346,11 @@ void client_manage(Window window) client_find_onscreen(self, &x, &y, self->frame->area.width, self->frame->area.height, - client_normal(self)); + /* non-normal clients has less rules, and + windows that are being restored from a session + do also. we can assume you want it back where + you saved it */ + client_normal(self) && !self->session); if (x != ox || y != oy) client_move(self, x, y);