1a06b0d5d7
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
22 lines
667 B
Diff
22 lines
667 B
Diff
diff --git src/key.c src/key.c
|
|
index 4b00d26..caefe42 100644
|
|
--- a/src/key.c
|
|
+++ b/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;
|