Package: keynav
Version: 0.20110708.0-2
Severity: normal

When I try to use Hyper key modifier in keynavrc, it doesn't work.
For example, the following line

  Hyper_L+i start

doesn't make Hyper_L+i key combination working as the start key.

It seems keynav.c uses Super key instead of Hyper key.  The attached
patch fixes it.

Index: keynav-0.20110708.0/keynav.c
===================================================================
--- keynav-0.20110708.0.orig/keynav.c
+++ keynav-0.20110708.0/keynav.c
@@ -310,9 +310,10 @@ int parse_mods(char *keyseq) {
       modmask |= ControlMask;
     if ((keysym == XK_Alt_L) || (keysym == XK_Alt_R))
       modmask |= Mod1Mask;
-    if ((keysym == XK_Super_L) || (keysym == XK_Super_R)
-        || (keysym == XK_Hyper_L) || (keysym == XK_Hyper_R))
+    if ((keysym == XK_Super_L) || (keysym == XK_Super_R))
       modmask |= Mod4Mask;
+    if ((keysym == XK_Hyper_L) || (keysym == XK_Hyper_R))
+      modmask |= Mod3Mask;
 
     /* 'xmodmap' will output the current modN:KeySym mappings */
   }
-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages keynav depends on:
ii  libc6         2.19-18
ii  libcairo2     1.14.0-2.1
ii  libglib2.0-0  2.42.1-1
ii  libx11-6      2:1.6.2-3
ii  libxdo3       1:3.20140805.1-2
ii  libxext6      2:1.3.3-1
ii  libxinerama1  2:1.1.3-1+b1

keynav recommends no packages.

keynav suggests no packages.

-- no debconf information

Reply via email to