From 6c5acb1b1e7759449e9663b50a659d9dbb2ebf50 Mon Sep 17 00:00:00 2001 From: "Enno Boland (tox)" Date: Mon, 7 Sep 2009 22:21:27 +0200 Subject: [PATCH] adding killclient, removing wmhints --- config.def.h | 1 + tabbed.c | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config.def.h b/config.def.h index 358826e..22a51f8 100644 --- a/config.def.h +++ b/config.def.h @@ -22,4 +22,5 @@ Key keys[] = { \ { MODKEY, XK_8, move, { .i = 8 } }, { MODKEY, XK_9, move, { .i = 9 } }, { MODKEY, XK_0, move, { .i = 10 } }, + { MODKEY, XK_q, killclient, { 0 } }, }; diff --git a/tabbed.c b/tabbed.c index 578b2a7..0d9792e 100644 --- a/tabbed.c +++ b/tabbed.c @@ -210,6 +210,11 @@ keypress(XEvent *e) { keys[i].func(&(keys[i].arg)); } +void +killclient(Arg *arg) { + puts("close a window"); +} + void move(const Arg *arg) { puts("move to nth tab"); @@ -239,8 +244,6 @@ run(void) { void setup(void) { - XWMHints *wmh; - /* init screen */ screen = DefaultScreen(dpy); root = RootWindow(dpy, screen); @@ -264,11 +267,6 @@ setup(void) { XSelectInput(dpy, win, StructureNotifyMask|PointerMotionMask| ButtonPressMask|ExposureMask|KeyPressMask| LeaveWindowMask); - wmh = XAllocWMHints(); - wmh->input = False; - wmh->flags = InputHint; - XSetWMHints(dpy, win, wmh); - XFree(wmh); XMapRaised(dpy, win); }