xserver-xorg-input-mouse: Changes to 'debian-unstable'
ChangeLog | 31 +++++++++++++++++++++++++++++++
configure.ac | 2 +-
debian/changelog | 7 +++++++
src/bsd_mouse.c | 27 +--------------------------
src/mouse.c | 5 +++++
src/mouse.h | 1 +
6 files changed, 46 insertions(+), 27 deletions(-)
New commits:
commit 308e9ff5422219ed8966e2c05756dd6befbd3454
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Mar 10 11:59:25 2011 +0100
Upload to unstable.
diff --git a/debian/changelog b/debian/changelog
index ecb216a..ba9425d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
-xserver-xorg-input-mouse (1:1.7.0-1) UNRELEASED; urgency=low
+xserver-xorg-input-mouse (1:1.7.0-1) unstable; urgency=low
* New upstream release:
- Fix BSD issues with new ABI12 init process.
- -- Cyril Brulebois <kibi@debian.org> Thu, 10 Mar 2011 11:58:23 +0100
+ -- Cyril Brulebois <kibi@debian.org> Thu, 10 Mar 2011 11:59:21 +0100
xserver-xorg-input-mouse (1:1.6.99.901-1) unstable; urgency=low
commit cc56346e084f05623b75675a8eabcfcc367015ad
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Mar 10 11:59:17 2011 +0100
Bump changelogs.
diff --git a/ChangeLog b/ChangeLog
index c93df20..c809cc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+commit a07c353f01f99ef3e62f84a32e91d539a4e4863a
+Author: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Thu Mar 10 08:32:23 2011 +1000
+
+ mouse 1.7.0
+
+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+
+commit a22879c6779283684fe4a61543fc95179b4f5d0b
+Author: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
+Date: Wed Mar 9 20:09:59 2011 +0500
+
+ Fix BSD issues with new ABI12 init process.
+
+ From Bug 34794:
+ "Until xf86-input-mouse-1.6.0, the MousePreInit() function exited if an
+ os specific PreInit function existed. It let the os-specific function finish
+ all initialisations that remained to be done after osInfo->PreInit() was
+ called.
+
+ The code in master now continues, and does things that the bsdMousePreInit()
+ function in bsd_mouse.c doesn't expect."
+
+ Fix up wsconsPreInit to deal with the new init process.
+
+ Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34794
+
+ Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
+ Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+
commit 2e507df6704ebd2cab6ada450ed40d89a2d3ca19
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon Feb 21 10:06:54 2011 +1000
diff --git a/debian/changelog b/debian/changelog
index 8c93b5e..ecb216a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xserver-xorg-input-mouse (1:1.7.0-1) UNRELEASED; urgency=low
+
+ * New upstream release:
+ - Fix BSD issues with new ABI12 init process.
+
+ -- Cyril Brulebois <kibi@debian.org> Thu, 10 Mar 2011 11:58:23 +0100
+
xserver-xorg-input-mouse (1:1.6.99.901-1) unstable; urgency=low
* New upstream release.
commit a07c353f01f99ef3e62f84a32e91d539a4e4863a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu Mar 10 08:32:23 2011 +1000
mouse 1.7.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/configure.ac b/configure.ac
index ed7c6fa..55eeac5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ([2.60])
AC_INIT([xf86-input-mouse],
- [1.6.99.901],
+ [1.7.0],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
[xf86-input-mouse])
AC_CONFIG_SRCDIR([Makefile.am])
commit a22879c6779283684fe4a61543fc95179b4f5d0b
Author: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Date: Wed Mar 9 20:09:59 2011 +0500
Fix BSD issues with new ABI12 init process.
From Bug 34794:
"Until xf86-input-mouse-1.6.0, the MousePreInit() function exited if an
os specific PreInit function existed. It let the os-specific function finish
all initialisations that remained to be done after osInfo->PreInit() was
called.
The code in master now continues, and does things that the bsdMousePreInit()
function in bsd_mouse.c doesn't expect."
Fix up wsconsPreInit to deal with the new init process.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34794
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/src/bsd_mouse.c b/src/bsd_mouse.c
index e9e2649..14b529d 100644
--- a/src/bsd_mouse.c
+++ b/src/bsd_mouse.c
@@ -102,7 +102,7 @@ SupportedInterfaces(void)
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO | MSE_MISC;
#else
- return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_XPS2 | MSE_AUTO;
+ return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_XPS2 | MSE_AUTO | MSE_MISC;
#endif
}
@@ -454,31 +454,6 @@ wsconsPreInit(InputInfoPtr pInfo, const char *protocol, int flags)
{
MouseDevPtr pMse = pInfo->private;
- pMse->protocol = protocol;
- xf86Msg(X_CONFIG, "%s: Protocol: %s\n", pInfo->name, protocol);
-
- /* Collect the options, and process the common options. */
- COLLECT_INPUT_OPTIONS(pInfo, NULL);
- xf86ProcessCommonOptions(pInfo, pInfo->options);
-
- /* Check if the device can be opened. */
- pInfo->fd = xf86OpenSerial(pInfo->options);
- if (pInfo->fd == -1) {
- if (xf86GetAllowMouseOpenFail())
- xf86Msg(X_WARNING, "%s: cannot open input device\n", pInfo->name);
- else {
- xf86Msg(X_ERROR, "%s: cannot open input device\n", pInfo->name);
- free(pMse);
- pInfo->private = NULL;
- return FALSE;
- }
- }
- xf86CloseSerial(pInfo->fd);
- pInfo->fd = -1;
-
- /* Process common mouse options (like Emulate3Buttons, etc). */
- pMse->CommonOptions(pInfo);
-
/* Setup the local input proc. */
pInfo->read_input = wsconsReadInput;
pMse->xisbscale = sizeof(struct wscons_event);
diff --git a/src/mouse.c b/src/mouse.c
index d2377ad..edb998f 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -252,6 +252,7 @@ static MouseProtocolRec mouseProtocols[] = {
/* Misc (usually OS-specific) */
{ "SysMouse", MSE_MISC, mlDefaults, PROT_SYSMOUSE },
+ { "WSMouse", MSE_MISC, NULL, PROT_WSMOUSE },
/* end of list */
{ NULL, MSE_NONE, NULL, PROT_UNKNOWN }
@@ -817,6 +818,10 @@ MousePickProtocol(InputInfoPtr pInfo, const char* device,
}
switch (protocolID) {
+ case PROT_WSMOUSE:
+ if (osInfo->PreInit)
+ osInfo->PreInit(pInfo, protocol, 0);
+ break;
case PROT_UNKNOWN:
/* Check for a builtin OS-specific protocol,
* and call its PreInit. */
diff --git a/src/mouse.h b/src/mouse.h
index 9f5b47e..6e63c54 100644
--- a/src/mouse.h
+++ b/src/mouse.h
@@ -77,6 +77,7 @@ typedef enum {
PROT_BM,
PROT_AUTO,
PROT_SYSMOUSE,
+ PROT_WSMOUSE,
PROT_NUMPROTOS /* This must always be last. */
} MouseProtocolID;
Reply to: