aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-07 01:23:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-07 01:23:56 +0200
commit652b789d1b3045293da297bcdccf3264c435bae8 (patch)
tree217cc0b6d9a3137abc66f64e040d8e84f8c78166 /print
parent10afde33e2d3281c1cd807b978480bef19026351 (diff)
downloadpatches-652b789d1b3045293da297bcdccf3264c435bae8.tar.gz
Add print/xpdf/patch-scrlock
Diffstat (limited to 'print')
-rw-r--r--print/xpdf/patch-scrlock16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/xpdf/patch-scrlock b/print/xpdf/patch-scrlock
new file mode 100644
index 0000000..24f4509
--- /dev/null
+++ b/print/xpdf/patch-scrlock
@@ -0,0 +1,16 @@
+$NetBSD
+
+Act as if Scroll Lock is always enabled. Useful if one cannot get
+the Scroll Lock key to be properly detected.
+
+--- xpdf/XPDFViewer.cc.orig 2021-06-04 00:11:44.381798737 +0200
++++ xpdf/XPDFViewer.cc
+@@ -660,7 +660,7 @@ int XPDFViewer::getContext(Guint modifiers) {
+ (core->getLinkAction() ? xpdfKeyContextOverLink
+ : xpdfKeyContextOffLink) |
+ ((modifiers & Mod5Mask) ? xpdfKeyContextScrLockOn
+- : xpdfKeyContextScrLockOff);
++ : xpdfKeyContextScrLockOn);
+ return context;
+ }
+