~kris/suckless

tabbed

e3080747c51ac1912e3fae7a45a97bd021b61daa — Christoph Lohmann 14 years ago cd09ae2
Removing the warning about »XKeycodeToKeysym.
1 files changed, 2 insertions(+), 1 deletions(-)

M tabbed.c
M tabbed.c => tabbed.c +2 -1
@@ 14,6 14,7 @@
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <X11/XKBlib.h>

#include "arg.h"



@@ 542,7 543,7 @@ keypress(const XEvent *e) {
	unsigned int i;
	KeySym keysym;

	keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
	keysym = XkbKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0, 0);
	for(i = 0; i < LENGTH(keys); i++)
		if(keysym == keys[i].keysym
		&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)