Make fullscreen remember what mode the client came from.

This commit is contained in:
sqweek 2007-09-29 02:45:11 +08:00
parent 93e500e6eb
commit deca2c7f5e
1 changed files with 10 additions and 1 deletions

View File

@ -447,6 +447,10 @@ fullscreen(Client *c, int fullscreen) {
if((f = c->sel)) {
if(fullscreen) {
/* we lose information here if the client was just moved to
* the floating area, but it's worth it */
c->revert = f->area;
if(f->area->floating)
f->revert = f->r;
else {
@ -454,8 +458,13 @@ fullscreen(Client *c, int fullscreen) {
send_to_area(f->view->area, f);
}
focus_client(c);
}else
}else {
resize_frame(f, f->revert);
if (c->revert) {
send_to_area(c->revert, f);
c->revert = nil;
}
}
if(f->view == screen->sel)
focus_view(screen, f->view);
}