From ec7333262c7838cbfe2490d704f53de385dbace2 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 16 May 2012 01:04:36 +0000 Subject: convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym ok sthen@ --- xevents.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index c0d46fc..23cb4a6 100644 --- a/xevents.c +++ b/xevents.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: xevents.c,v 1.57 2012/05/13 15:17:13 okan Exp $ + * $OpenBSD: xevents.c,v 1.58 2012/05/16 01:04:36 okan Exp $ */ /* @@ -278,8 +278,8 @@ xev_handle_keypress(XEvent *ee) KeySym keysym, skeysym; int modshift; - keysym = XKeycodeToKeysym(X_Dpy, e->keycode, 0); - skeysym = XKeycodeToKeysym(X_Dpy, e->keycode, 1); + keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0); + skeysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 1); /* we don't care about caps lock and numlock here */ e->state &= ~(LockMask | Mod2Mask); @@ -327,7 +327,7 @@ xev_handle_keyrelease(XEvent *ee) sc = screen_fromroot(e->root); cc = client_current(); - keysym = XKeycodeToKeysym(X_Dpy, e->keycode, 0); + keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0); if (keysym != XK_Alt_L && keysym != XK_Alt_R) return; -- cgit v1.2.3-2-gb3c3