about summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2009-01-16 15:24:14 +0000
committerokan <okan>2009-01-16 15:24:14 +0000
commitec8e6052ba902d2b6afced31008aad015d38f062 (patch)
tree68c77d7e466ced3867647a355e86bb4dc28a0a67 /conf.c
parent5c757cc7f420f58112d3e2af7a6f124994bcbe23 (diff)
downloadcwm-ec8e6052ba902d2b6afced31008aad015d38f062.tar.gz
cwm-ec8e6052ba902d2b6afced31008aad015d38f062.tar.xz
cwm-ec8e6052ba902d2b6afced31008aad015d38f062.zip
remove pwin, bringing us to one client, one window. we no longer have
to push attributes around, so things get a lot simplier, while fixing a
few issues in the meantime; original suggestion by Edd Barrett many many
moons ago.

annoying window placement and race, found in c2k8 by todd, fix by oga!

lots of feedback from todd and oga - thanks!

"commit that bad boy" oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index d874050..74a07af 100644
--- a/conf.c
+++ b/conf.c
@@ -201,7 +201,7 @@ conf_client(struct client_ctx *cc)
 	} else
 		ignore = 1;
 
-	cc->bwidth = ignore ? 0 : 3;
+	cc->bwidth = ignore ? 0 : CLIENT_BWIDTH;
 	cc->flags |= ignore ? CLIENT_IGNORE : 0;
 }
 
@@ -530,6 +530,6 @@ conf_grab_mouse(struct client_ctx *cc)
 			warnx("strange button in mousebinding\n");
 			continue;
 		}
-		xu_btn_grab(cc->pwin, mb->modmask, button);
+		xu_btn_grab(cc->win, mb->modmask, button);
 	}
 }