File: fix-hyper.patch

package info (click to toggle)
keynav 0.20180421~git6505bd0d-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: ansic: 1,509; sh: 48; makefile: 48
file content (22 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Milan Zamazal <pdm@debian.org>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=796248;filename=fix-hyper.diff;msg=5
Bug-Debian: https://bugs.debian.org/796248
Bug: https://github.com/jordansissel/keynav/issues/19
Description: Support the Hyper modifier
Forwarded: no

--- a/keynav.c
+++ b/keynav.c
@@ -316,9 +316,10 @@
       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 */
   }