jwm: fix desktop switching on dvorak layouts

This commit is contained in:
Olga Ustuzhanina 2019-01-24 15:06:22 +07:00 committed by maxice8
parent ecd1c6b2d7
commit 5e1d977491
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
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;

View File

@ -1,7 +1,7 @@
# Template file for 'jwm'
pkgname=jwm
version=2.3.7
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="