about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 13:58:21 +0200
committerarg@mmvi <unknown>2006-09-22 13:58:21 +0200
commit67986e81eed4a76cb4c50aed62ddb1fd14c4659d (patch)
tree61708588dfb72e297596da787acf3fb979bad8cd
parent346bdea946887d83f857a8944a0189bca51a3e47 (diff)
downloaddwm-67986e81eed4a76cb4c50aed62ddb1fd14c4659d.tar.gz
hotfix
-rw-r--r--view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/view.c b/view.c
index 5667134..682e331 100644
--- a/view.c
+++ b/view.c
@@ -45,17 +45,18 @@ reorder() {
 static void
 togglemax(Client *c)
 {
+	XEvent ev;
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x; c->x = sx;
 		c->ry = c->y; c->y = bh;
 		c->rw = c->w; c->w = sw;
-		c->rh = c->h; c->h = sh;
+		c->rh = c->h; c->h = sh - bh;
 	}
 	else {
 		c->x = c->rx;
 		c->y = c->ry;
-		c->w = c->w;
-		c->h = c->h;
+		c->w = c->rw;
+		c->h = c->rh;
 	}
 	resize(c, True, TopLeft);
 	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
@@ -231,7 +232,7 @@ void
 restack() {
 	Client *c;
 	XEvent ev;
-	
+
 	if(!sel) {
 		drawstatus();
 		return;
@@ -296,7 +297,6 @@ void
 zoom(Arg *arg) {
 	unsigned int n;
 	Client *c;
-	XEvent ev;
 
 	if(!sel)
 		return;
f='#n164'>164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267