* Mon Feb 16 2009 Peter Hutterer <peter.hutterer@redhat.com> 1.5.99.902-11
- xserver-1.5.99.902-xkb-colors.patch: don't confuse src and dst when copying color labels (#469572)
This commit is contained in:
parent
7f7f7d5ccd
commit
6f1b592e59
@ -19,7 +19,7 @@
|
|||||||
Summary: X.Org X11 X server
|
Summary: X.Org X11 X server
|
||||||
Name: xorg-x11-server
|
Name: xorg-x11-server
|
||||||
Version: 1.5.99.902
|
Version: 1.5.99.902
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
@ -92,6 +92,8 @@ Patch6014: xserver-1.5.99.902-always-RAW.patch
|
|||||||
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=20087
|
# https://bugs.freedesktop.org/show_bug.cgi?id=20087
|
||||||
Patch6015: xserver-1.5.99.902-vnc.patch
|
Patch6015: xserver-1.5.99.902-vnc.patch
|
||||||
|
# RH 469572, FDO 20081
|
||||||
|
Patch6016: xserver-1.5.99.902-xkb-colors.patch
|
||||||
|
|
||||||
%define moduledir %{_libdir}/xorg/modules
|
%define moduledir %{_libdir}/xorg/modules
|
||||||
%define drimoduledir %{_libdir}/dri
|
%define drimoduledir %{_libdir}/dri
|
||||||
@ -509,6 +511,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 16 2009 Peter Hutterer <peter.hutterer@redhat.com> 1.5.99.902-11
|
||||||
|
- xserver-1.5.99.902-xkb-colors.patch: don't confuse src and dst when copying
|
||||||
|
color labels (#469572)
|
||||||
|
|
||||||
* Thu Feb 12 2009 Adam Tkac <atkac redhat com> 1.5.99.902-10
|
* Thu Feb 12 2009 Adam Tkac <atkac redhat com> 1.5.99.902-10
|
||||||
- don't call drv->UnInit if device doesn't have driver
|
- don't call drv->UnInit if device doesn't have driver
|
||||||
|
|
||||||
|
35
xserver-1.5.99.902-xkb-colors.patch
Normal file
35
xserver-1.5.99.902-xkb-colors.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 97b23d4a932a493c5f6dc470925a67ad684e4f0f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Fri, 13 Feb 2009 09:56:22 +1000
|
||||||
|
Subject: [PATCH] xkb: Fix wrong colour reference in XKB geometry copying. #20081
|
||||||
|
|
||||||
|
base_color and label_color need to reference the color in the destination, not
|
||||||
|
in the source.
|
||||||
|
|
||||||
|
X.Org Bug 20081 <http://bugs.freedesktop.org/show_bug.cgi?id=20081>
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
||||||
|
---
|
||||||
|
xkb/xkbUtils.c | 4 ++--
|
||||||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
|
||||||
|
index aa63b35..9a1edc9 100644
|
||||||
|
--- a/xkb/xkbUtils.c
|
||||||
|
+++ b/xkb/xkbUtils.c
|
||||||
|
@@ -1955,9 +1955,9 @@ _XkbCopyGeom(XkbDescPtr src, XkbDescPtr dst)
|
||||||
|
|
||||||
|
strcpy(dst->geom->label_font, src->geom->label_font);
|
||||||
|
i = XkbGeomColorIndex(src->geom, src->geom->label_color);
|
||||||
|
- dst->geom->label_color = &(src->geom->colors[i]);
|
||||||
|
+ dst->geom->label_color = &(dst->geom->colors[i]);
|
||||||
|
i = XkbGeomColorIndex(src->geom, src->geom->base_color);
|
||||||
|
- dst->geom->base_color = &(src->geom->colors[i]);
|
||||||
|
+ dst->geom->base_color = &(dst->geom->colors[i]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (dst->geom->label_font) {
|
||||||
|
--
|
||||||
|
1.6.0.6
|
||||||
|
|
Loading…
Reference in New Issue
Block a user