s/prev/old
Be consistent with the rest of the code and dwm
This commit is contained in:
parent
c89de53de3
commit
9c2524b06a
18
dwl.c
18
dwl.c
|
@ -112,10 +112,10 @@ typedef struct {
|
||||||
unsigned int tags;
|
unsigned int tags;
|
||||||
int isfloating;
|
int isfloating;
|
||||||
uint32_t resize; /* configure serial of a pending resize */
|
uint32_t resize; /* configure serial of a pending resize */
|
||||||
int prevx;
|
int oldx;
|
||||||
int prevy;
|
int oldy;
|
||||||
int prevwidth;
|
int oldwidth;
|
||||||
int prevheight;
|
int oldheight;
|
||||||
int isfullscreen;
|
int isfullscreen;
|
||||||
} Client;
|
} Client;
|
||||||
|
|
||||||
|
@ -1067,13 +1067,13 @@ setfullscreen(Client *c, int fullscreen)
|
||||||
|
|
||||||
// restore previous size instead of arrange to work with floating windows
|
// restore previous size instead of arrange to work with floating windows
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
c->prevx = c->geom.x;
|
c->oldx = c->geom.x;
|
||||||
c->prevy = c->geom.y;
|
c->oldy = c->geom.y;
|
||||||
c->prevheight = c->geom.height;
|
c->oldheight = c->geom.height;
|
||||||
c->prevwidth = c->geom.width;
|
c->oldwidth = c->geom.width;
|
||||||
resize(c, c->mon->m.x, c->mon->m.y, c->mon->m.width, c->mon->m.height, 0);
|
resize(c, c->mon->m.x, c->mon->m.y, c->mon->m.width, c->mon->m.height, 0);
|
||||||
} else {
|
} else {
|
||||||
resize(c, c->prevx, c->prevy, c->prevwidth, c->prevheight, 0);
|
resize(c, c->oldx, c->oldy, c->oldwidth, c->oldheight, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue