rpms/xorg-x11-server/F-11 xserver-1.6.1-vt-switch.patch, NONE, 1.1 xorg-x11-server.spec, 1.444, 1.445
Adam Jackson
ajax at fedoraproject.org
Fri May 8 21:23:31 UTC 2009
Author: ajax
Update of /cvs/pkgs/rpms/xorg-x11-server/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13837
Modified Files:
xorg-x11-server.spec
Added Files:
xserver-1.6.1-vt-switch.patch
Log Message:
* Fri May 08 2009 Adam Jackson <ajax at redhat.com> 1.6.1-13
- xserver-1.6.1-vt-switch.patch: Synthesize key releases on vt switch away,
not just on return. Fixes CPU usage bug while switched away. (#484393)
xserver-1.6.1-vt-switch.patch:
--- NEW FILE xserver-1.6.1-vt-switch.patch ---
>From 492bfcdc7419a94bd026202b2a2c65541c2e54d2 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax at redhat.com>
Date: Fri, 8 May 2009 16:06:23 -0400
Subject: [PATCH] Fake key releases on vt leave, not just enter
Fixes silly cpu usage bug while vt switched away.
---
hw/xfree86/common/xf86Events.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index d6ef93a..9923f84 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -505,10 +505,14 @@ xf86VTSwitch()
*/
pInfo = xf86InputDevs;
while (pInfo) {
- if (pInfo->dev)
+ if (pInfo->dev) {
+ xf86ReleaseKeys(pInfo->dev);
DisableDevice(pInfo->dev);
+ }
pInfo = pInfo->next;
}
+ xf86ReleaseKeys(inputInfo.keyboard);
+
xf86EnterServerState(SETUP);
for (i = 0; i < xf86NumScreens; i++)
xf86Screens[i]->LeaveVT(i, 0);
--
1.6.2.2
Index: xorg-x11-server.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-server/F-11/xorg-x11-server.spec,v
retrieving revision 1.444
retrieving revision 1.445
diff -u -p -r1.444 -r1.445
--- xorg-x11-server.spec 7 May 2009 14:01:24 -0000 1.444
+++ xorg-x11-server.spec 8 May 2009 21:23:01 -0000 1.445
@@ -19,7 +19,7 @@
Summary: X.Org X11 X server
Name: xorg-x11-server
Version: 1.6.1
-Release: 12%{?dist}
+Release: 13%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X
@@ -112,6 +112,8 @@ Patch6033: xserver-1.6.1-activate-device
Patch6034: xserver-1.6.1-exa-create-pixmap2.patch
Patch6035: xserver-1.6.1-avoid-malloc-for-logging.patch
+Patch6040: xserver-1.6.1-vt-switch.patch
+
%define moduledir %{_libdir}/xorg/modules
%define drimoduledir %{_libdir}/dri
%define sdkdir %{_includedir}/xorg
@@ -544,6 +546,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri May 08 2009 Adam Jackson <ajax at redhat.com> 1.6.1-13
+- xserver-1.6.1-vt-switch.patch: Synthesize key releases on vt switch away,
+ not just on return. Fixes CPU usage bug while switched away. (#484393)
+
* Thu May 07 2009 Adam Jackson <ajax at redhat.com> 1.6.1-12
- xserver-1.6.1-nouveau.patch: AIGLX setup failure is not an error for
nouveau.
More information about the scm-commits
mailing list