aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2012-05-16 01:04:36 +0000
committerokan2012-05-16 01:04:36 +0000
commitec7333262c7838cbfe2490d704f53de385dbace2 (patch)
tree29088366d9a849cf921427b0552f558d5d4518d5 /menu.c
parentc3c3502b6de9fecee3c432674128c3121bf83d34 (diff)
downloadcwm-ec7333262c7838cbfe2490d704f53de385dbace2.tar.gz
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym
ok sthen@
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 79b283d..5fc2888 100644
--- a/menu.c
+++ b/menu.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: menu.c,v 1.33 2011/09/08 12:00:50 okan Exp $
+ * $OpenBSD: menu.c,v 1.34 2012/05/16 01:04:36 okan Exp $
*/
#include <sys/param.h>
@@ -466,7 +466,7 @@ menu_keycode(KeyCode kc, u_int state, enum ctltype *ctl, char *chr)
*ctl = CTL_NONE;
*chr = '\0';
- ks = XKeycodeToKeysym(X_Dpy, kc, (state & ShiftMask) ? 1 : 0);
+ ks = XkbKeycodeToKeysym(X_Dpy, kc, 0, (state & ShiftMask) ? 1 : 0);
/* Look for control characters. */
switch (ks) {