aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2013-01-08 15:16:04 +0000
committerokan2013-01-08 15:16:04 +0000
commit4372e951672dfbd5308d0794d0b4fe7f47d4c050 (patch)
treea50ccca8771f738edfb57d05d35ebf2c1d52456a /kbfunc.c
parentbd448cd97c1d6ac4577fa4831105f3d54fab673b (diff)
downloadcwm-4372e951672dfbd5308d0794d0b4fe7f47d4c050.tar.gz
add per-group vert/horiz tiling support; introduces 2 new bind commands,
'vtile' and 'htile'; from Alexander Polakov.
Diffstat (limited to '')
-rw-r--r--kbfunc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 926229c..73676a1 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.75 2013/01/04 16:30:03 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.76 2013/01/08 15:16:05 okan Exp $
*/
#include <sys/param.h>
@@ -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;
+ }
+}