From ec26c13de147ef048bb8070e11f96af4879faabd Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Tue, 13 Mar 2012 21:58:51 +0200 Subject: Replace XKeycodeToKeysym with XkbKeycodeToKeysym XKeycodeToKeysym is now deprecated, as per http://www.x.org/releases/X11R7.6/changelog.txt Dirk Wallenstein (5): man: Redirect users from XKeycodeToKeysym to XkbKeycodeToKeysym #25732 --- monsterwm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'monsterwm.c') diff --git a/monsterwm.c b/monsterwm.c index 6f2c061..b2ee3f0 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -7,9 +7,8 @@ #include #include #include -#include #include -#include +#include #include #include @@ -408,7 +407,7 @@ void grid(int hh, int cy) { /* on the press of a key check to see if there's a binded function to call */ void keypress(XEvent *e) { - KeySym keysym = XKeycodeToKeysym(dis, (KeyCode)e->xkey.keycode, 0); + KeySym keysym = XkbKeycodeToKeysym(dis, e->xkey.keycode, 0, 0); for (unsigned int i=0; ixkey.state) && keys[i].func) keys[i].func(&keys[i].arg); -- cgit v1.3.1