aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2012-05-16 01:04:36 +0000
committerokan2012-05-16 01:04:36 +0000
commitec7333262c7838cbfe2490d704f53de385dbace2 (patch)
tree29088366d9a849cf921427b0552f558d5d4518d5 /xevents.c
parentc3c3502b6de9fecee3c432674128c3121bf83d34 (diff)
downloadcwm-ec7333262c7838cbfe2490d704f53de385dbace2.tar.gz
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym
ok sthen@
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;