diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-11 07:35:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-11 07:35:05 +0000 |
| commit | 5592351585a96da1a45bf9919dd508f226fe1058 (patch) | |
| tree | ad2f9b48bbc28f95559800a60ddff96be9104194 /openbox | |
| parent | 850d84a9a8bc53d78bba323d7a9002f2381164cf (diff) | |
give clients being restored from a session a little more flexibility in lpacement so they will go back where they were when saved
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
