summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan <okan>2013-01-08 15:16:04 +0000
committerokan <okan>2013-01-08 15:16:04 +0000
commit3a7596968b740328c41f6807800d004c75e3c62f (patch)
tree19c3c033c0c99a2464a9dbd2d38332acc3829ddc /kbfunc.c
parentbf9d9815976c0afae2e87afeebaa57b02b1d911c (diff)
downloadcwm-3a7596968b740328c41f6807800d004c75e3c62f.tar.gz
cwm-3a7596968b740328c41f6807800d004c75e3c62f.tar.xz
cwm-3a7596968b740328c41f6807800d004c75e3c62f.zip
add per-group vert/horiz tiling support; introduces 2 new bind commands,
'vtile' and 'htile'; from Alexander Polakov.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kbfunc.c b/kbfunc.c
index d61193f..c742f7e 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -479,3 +479,16 @@ kbfunc_restart(struct client_ctx *cc, union arg *arg)
 	(void)setsid();
 	(void)execvp(cwm_argv[0], cwm_argv);
 }
+
+void
+kbfunc_tile(struct client_ctx *cc, union arg *arg)
+{
+	switch (arg->i) {
+		case CWM_TILE_HORIZ:
+			client_htile(cc);
+			break;
+		case CWM_TILE_VERT:
+			client_vtile(cc);
+			break;
+	}
+}