aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers/xorg-server-snap
diff options
context:
space:
mode:
authorlesi <lesi@FreeBSD.org>2004-09-26 22:18:42 +0800
committerlesi <lesi@FreeBSD.org>2004-09-26 22:18:42 +0800
commit238ca6e811b83bf4c505afa8ffc29230d5c1aae2 (patch)
tree05d855e11f4ef248ac1c4dd2b252c2d298567b91 /x11-servers/xorg-server-snap
parenteda27333f0ab340328dd365ab33b8563163f49dd (diff)
downloadfreebsd-ports-graphics-238ca6e811b83bf4c505afa8ffc29230d5c1aae2.tar.gz
freebsd-ports-graphics-238ca6e811b83bf4c505afa8ffc29230d5c1aae2.tar.zst
freebsd-ports-graphics-238ca6e811b83bf4c505afa8ffc29230d5c1aae2.zip
Fix behaviour of keyboard under pc98 where keycodes differ from i386.
Submitted by: Satoshi Kimura Approved by: portmgr (linimon), mentor (anholt)
Diffstat (limited to 'x11-servers/xorg-server-snap')
-rw-r--r--x11-servers/xorg-server-snap/Makefile2
-rw-r--r--x11-servers/xorg-server-snap/files/patch-xf86Events.c37
2 files changed, 34 insertions, 5 deletions
diff --git a/x11-servers/xorg-server-snap/Makefile b/x11-servers/xorg-server-snap/Makefile
index 1f27c688f7b..f69043a31cc 100644
--- a/x11-servers/xorg-server-snap/Makefile
+++ b/x11-servers/xorg-server-snap/Makefile
@@ -7,7 +7,7 @@
PORTNAME= server
PORTVERSION= 6.7.0
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= x11-servers
MASTER_SITES= http://freedesktop.org/~xorg/X11R6.7.0/src/ \
${MASTER_SITE_XORG}
diff --git a/x11-servers/xorg-server-snap/files/patch-xf86Events.c b/x11-servers/xorg-server-snap/files/patch-xf86Events.c
index 7fbd058bd22..bdd5bc51c81 100644
--- a/x11-servers/xorg-server-snap/files/patch-xf86Events.c
+++ b/x11-servers/xorg-server-snap/files/patch-xf86Events.c
@@ -1,5 +1,5 @@
---- programs/Xserver/hw/xfree86/common/xf86Events.c.orig Sat Dec 6 14:24:24 2003
-+++ programs/Xserver/hw/xfree86/common/xf86Events.c Tue Aug 31 00:27:37 2004
+--- programs/Xserver/hw/xfree86/common/xf86Events.c.orig Sun Sep 26 04:17:42 2004
++++ programs/Xserver/hw/xfree86/common/xf86Events.c Sun Sep 26 04:17:25 2004
@@ -448,7 +448,7 @@
#if defined(SYSCONS_SUPPORT) || defined(PCVT_SUPPORT) || defined(WSCONS_SUPPORT)
static Bool first_time = TRUE;
@@ -27,7 +27,36 @@
#ifdef __linux__
if (xf86Info.kbdCustomKeycodes) {
-@@ -676,7 +676,7 @@
+@@ -525,6 +525,7 @@
+ } else
+ #endif /* i386 && SVR4 */
+ {
++ if (!xf86IsPc98()) {
+ switch (scanCode) {
+ case 0x59: scanCode = KEY_0x59; break;
+ case 0x5a: scanCode = KEY_0x5A; break;
+@@ -555,6 +556,7 @@
+ case 0x75: scanCode = KEY_0x75; break;
+ case 0x76: scanCode = KEY_0x76; break;
+ }
++ } /* end if (!xf86IsPc98()) */
+ }
+ }
+
+@@ -636,10 +638,12 @@
+ * they need to get the same key code as the base key on the same
+ * physical keyboard key.
+ */
++ if (!xf86IsPc98()) {
+ if (scanCode == KEY_SysReqest)
+ scanCode = KEY_Print;
+ else if (scanCode == KEY_Break)
+ scanCode = KEY_Pause;
++ }
+ #endif
+
+ /*
+@@ -676,7 +680,7 @@
}
}
#endif
@@ -36,7 +65,7 @@
special:
if (kbdSun) {
switch (scanCode) {
-@@ -710,7 +710,7 @@
+@@ -710,7 +714,7 @@
*/
scanCode--;
}