rpms/xorg-x11-server/devel xserver-1.5.99.902-mediakeys-crash.patch, NONE, 1.1 xorg-x11-server.spec, 1.398, 1.399
Peter Hutterer
whot at fedoraproject.org
Mon Feb 9 00:45:30 UTC 2009
- Previous message: rpms/xconvers/devel import.log, NONE, 1.1 xconvers.desktop, NONE, 1.1 xconvers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/xconvers/F-10 .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: whot
Update of /cvs/pkgs/rpms/xorg-x11-server/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25221
Modified Files:
xorg-x11-server.spec
Added Files:
xserver-1.5.99.902-mediakeys-crash.patch
Log Message:
* Mon Feb 09 2009 Peter Hutterer <peter.hutterer at redhat.com> 1.5.99.902-5
- xserver-1.5.99.902-mediakeys-crash.patch: don't crash when multimedia keys
are pressed (#483435)
xserver-1.5.99.902-mediakeys-crash.patch:
--- NEW FILE xserver-1.5.99.902-mediakeys-crash.patch ---
>From 0d4beba90ad82998f123f05dc0a03003f031b6f0 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer at redhat.com>
Date: Fri, 16 Jan 2009 20:38:57 +1000
Subject: [PATCH] mi: force the paired kbd device before CopyKeyClass. (#19574)
Some multi-media keyboards send the key events for multimedia keys through the
device file used by the mouse. Sending a key event through the VCP however
will fail. The VCP doesn't have a key class so the server crashes or (with an
appropriate fix) the event is simply swallowed.
Thus, for key events if the master does not have a key class, get the device
paired with the master (i.e. the VCK) before processing the event any further.
X.Org Bug 19574 <http://bugs.freedesktop.org/show_bug.cgi?id=19574>
---
mi/mieq.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/mi/mieq.c b/mi/mieq.c
index 226caa6..213ad5b 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -451,7 +451,11 @@ mieqProcessInputEvents(void)
is transferred. */
if (event->u.u.type == DeviceKeyPress ||
event->u.u.type == DeviceKeyRelease)
+ {
+ if (!master->key)
+ master = GetPairedDevice(master);
CopyKeyClass(dev, master);
+ }
CopyGetMasterEvent(master, dev, event, masterEvents, nevents);
}
Index: xorg-x11-server.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-server/devel/xorg-x11-server.spec,v
retrieving revision 1.398
retrieving revision 1.399
diff -u -r1.398 -r1.399
--- xorg-x11-server.spec 8 Feb 2009 07:09:23 -0000 1.398
+++ xorg-x11-server.spec 9 Feb 2009 00:44:59 -0000 1.399
@@ -19,7 +19,7 @@
Summary: X.Org X11 X server
Name: xorg-x11-server
Version: 1.5.99.902
-Release: 4%{?dist}
+Release: 5%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X
@@ -79,6 +79,8 @@
Patch6009: xserver-1.5.99.902-xinerama.patch
# cf. bug 482924
Patch6010: xserver-1.5.99.902-selinux-debugging.patch
+# nominated for 1.6 (FDO #19574)
+Patch6011: xserver-1.5.99.902-mediakeys-crash.patch
%define moduledir %{_libdir}/xorg/modules
%define drimoduledir %{_libdir}/dri
@@ -496,6 +498,10 @@
%changelog
+* Mon Feb 09 2009 Peter Hutterer <peter.hutterer at redhat.com> 1.5.99.902-5
+- xserver-1.5.99.902-mediakeys-crash.patch: don't crash when multimedia keys
+ are pressed (#483435)
+
* Sun Feb 08 2009 Adam Jackson <ajax at redhat.com> 1.5.99.902-4
- xserver-1.5.99.902-selinux-debugging.patch: Try to figure out why selinux
class map setup fails.
- Previous message: rpms/xconvers/devel import.log, NONE, 1.1 xconvers.desktop, NONE, 1.1 xconvers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/xconvers/F-10 .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list