aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c8
1 files changed, 4 insertions, 4 deletions
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;