openbsd-ports/x11/i3/patches/patch-i3-config-wizard_cfgparse_y
2012-05-31 08:39:59 +00:00

27 lines
913 B
Plaintext

$OpenBSD: patch-i3-config-wizard_cfgparse_y,v 1.1 2012/05/31 08:39:59 dcoppa Exp $
From 7a67938f3ce7dfe51eb60b9873946e120184195d Mon Sep 17 00:00:00 2001
From: David Coppa <dcoppa@gmail.com>
Date: Wed, 30 May 2012 09:11:08 +0000
Subject: Replace deprecated XKeycodeToKeysym() with XkbKeycodeToKeysym()
--- i3-config-wizard/cfgparse.y.orig Wed Apr 25 23:21:25 2012
+++ i3-config-wizard/cfgparse.y Thu May 31 10:32:20 2012
@@ -13,6 +13,7 @@
#include <string.h>
#include <X11/Xlib.h>
+#include <X11/XKBlib.h>
#include "libi3.h"
@@ -139,7 +140,7 @@ bindcode:
* more likely for special characters). */
level = 1;
}
- KeySym sym = XKeycodeToKeysym(dpy, $4, level);
+ KeySym sym = XkbKeycodeToKeysym(dpy, $4, 0, level);
char *str = XKeysymToString(sym);
char *modifiers = modifier_to_string($<number>3);
// TODO: modifier to string