mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
This fixes the nasty problem of the mouse locking if you toggle between X
and a virtual terminal. Submitted by: Sean O'Connell <sean@stat.Duke.EDU>
This commit is contained in:
parent
64be182734
commit
79d3b56432
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33116
32
x11/XFree86-4/files/patch-k
Normal file
32
x11/XFree86-4/files/patch-k
Normal file
@ -0,0 +1,32 @@
|
||||
--- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sun Jul 23 17:50:10 2000
|
||||
+++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Sun Jul 23 17:54:22 2000
|
||||
@@ -692,10 +692,15 @@
|
||||
pMse->protocolID = protocolID;
|
||||
}
|
||||
}
|
||||
+#ifndef __FreeBSD__
|
||||
memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara));
|
||||
+#endif
|
||||
if (automatic) {
|
||||
|
||||
if (name) {
|
||||
+#ifdef __FreeBSD__
|
||||
+ memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara));
|
||||
+#endif
|
||||
/* Possible protoPara overrides from SetupAuto. */
|
||||
for (i = 0; i < sizeof(pMse->protoPara); i++)
|
||||
if (protoPara[i] != -1)
|
||||
--- programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c.orig Sat Feb 12 22:45:41 2000
|
||||
+++ programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c Sun Jul 23 17:50:10 2000
|
||||
@@ -165,7 +165,11 @@
|
||||
mode.rate = rate > 0 ? rate : -1;
|
||||
mode.resolution = res > 0 ? res : -1;
|
||||
mode.accelfactor = -1;
|
||||
+#ifdef __FreeBSD__
|
||||
+ mode.level = 1;
|
||||
+#else
|
||||
mode.level = -1;
|
||||
+#endif
|
||||
ioctl(pInfo->fd, MOUSE_SETMODE, &mode);
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user