summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2020-12-19 18:31:26 +0100
committerGuido Cella <guido@guidocella.xyz>2020-12-19 18:31:26 +0100
commit9c2524b06a486cd01bfc06b73d10e2b903e3d82d (patch)
tree0691aa5d21efb570efe2168ccd668a8d7e560c8b
parentc89de53de3e0867157730026a333e16430e71e5a (diff)
s/prev/old
Be consistent with the rest of the code and dwm
-rw-r--r--dwl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/dwl.c b/dwl.c
index 6d51236..02efa43 100644
--- a/dwl.c
+++ b/dwl.c
@@ -112,10 +112,10 @@ typedef struct {
unsigned int tags;
int isfloating;
uint32_t resize; /* configure serial of a pending resize */
- int prevx;
- int prevy;
- int prevwidth;
- int prevheight;
+ int oldx;
+ int oldy;
+ int oldwidth;
+ int oldheight;
int isfullscreen;
} Client;
@@ -1067,13 +1067,13 @@ setfullscreen(Client *c, int fullscreen)
// restore previous size instead of arrange to work with floating windows
if (fullscreen) {
- c->prevx = c->geom.x;
- c->prevy = c->geom.y;
- c->prevheight = c->geom.height;
- c->prevwidth = c->geom.width;
+ c->oldx = c->geom.x;
+ c->oldy = c->geom.y;
+ c->oldheight = c->geom.height;
+ c->oldwidth = c->geom.width;
resize(c, c->mon->m.x, c->mon->m.y, c->mon->m.width, c->mon->m.height, 0);
} else {
- resize(c, c->prevx, c->prevy, c->prevwidth, c->prevheight, 0);
+ resize(c, c->oldx, c->oldy, c->oldwidth, c->oldheight, 0);
}
}