adding killclient, removing wmhints
This commit is contained in:
parent
6e9420683a
commit
6c5acb1b1e
|
@ -22,4 +22,5 @@ Key keys[] = { \
|
||||||
{ MODKEY, XK_8, move, { .i = 8 } },
|
{ MODKEY, XK_8, move, { .i = 8 } },
|
||||||
{ MODKEY, XK_9, move, { .i = 9 } },
|
{ MODKEY, XK_9, move, { .i = 9 } },
|
||||||
{ MODKEY, XK_0, move, { .i = 10 } },
|
{ MODKEY, XK_0, move, { .i = 10 } },
|
||||||
|
{ MODKEY, XK_q, killclient, { 0 } },
|
||||||
};
|
};
|
||||||
|
|
12
tabbed.c
12
tabbed.c
|
@ -210,6 +210,11 @@ keypress(XEvent *e) {
|
||||||
keys[i].func(&(keys[i].arg));
|
keys[i].func(&(keys[i].arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
killclient(Arg *arg) {
|
||||||
|
puts("close a window");
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
move(const Arg *arg) {
|
move(const Arg *arg) {
|
||||||
puts("move to nth tab");
|
puts("move to nth tab");
|
||||||
|
@ -239,8 +244,6 @@ run(void) {
|
||||||
|
|
||||||
void
|
void
|
||||||
setup(void) {
|
setup(void) {
|
||||||
XWMHints *wmh;
|
|
||||||
|
|
||||||
/* init screen */
|
/* init screen */
|
||||||
screen = DefaultScreen(dpy);
|
screen = DefaultScreen(dpy);
|
||||||
root = RootWindow(dpy, screen);
|
root = RootWindow(dpy, screen);
|
||||||
|
@ -264,11 +267,6 @@ setup(void) {
|
||||||
XSelectInput(dpy, win, StructureNotifyMask|PointerMotionMask|
|
XSelectInput(dpy, win, StructureNotifyMask|PointerMotionMask|
|
||||||
ButtonPressMask|ExposureMask|KeyPressMask|
|
ButtonPressMask|ExposureMask|KeyPressMask|
|
||||||
LeaveWindowMask);
|
LeaveWindowMask);
|
||||||
wmh = XAllocWMHints();
|
|
||||||
wmh->input = False;
|
|
||||||
wmh->flags = InputHint;
|
|
||||||
XSetWMHints(dpy, win, wmh);
|
|
||||||
XFree(wmh);
|
|
||||||
XMapRaised(dpy, win);
|
XMapRaised(dpy, win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue