void-packages/srcpkgs/jwm/patches/fix_dvorak.patch

23 lines
663 B
Diff

diff --git src/key.c src/key.c
index 4b00d26..caefe42 100644
--- src/key.c
+++ src/key.c
@@ -18,6 +18,8 @@
#include "root.h"
#include "tray.h"
+#include <X11/XKBlib.h>
+
#define MASK_NONE 0
#define MASK_SHIFT (1 << ShiftMapIndex)
#define MASK_LOCK (1 << LockMapIndex)
@@ -396,7 +398,7 @@ void InsertBinding(KeyType key, const char *modifiers,
for(temp[offset] = '1'; temp[offset] <= '9'; temp[offset]++) {
- sym = ParseKeyString(temp);
+ sym = XkbKeycodeToKeysym(display, temp[offset] - '1' + 10, 0, 0);
if(sym == NoSymbol) {
Release(temp);
return;